Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 26-03-2009
Members
 
Join Date: Jan 2009
Posts: 41
Word search on page

Hello.

I try for site which is only 1 page with many links. Now in the beginning has been any organized, but that will not be long.

Now I find a script that a bit the same as the "control + F" key, but in the form form.

So I would like an input field with a button "search" then deliberate on the page itself looks at what the first word that comes across, and possibly an error message if the word (or words) does not exist.

As much;
Code:
Quote:
<input type = "text" size = "20" class = "Search" OnFocus = "if (this.value == 'I'm looking ...') this.value ='';" value =" I am looking for .. .>



Someone who can shine a light on?

thank you
Reply With Quote
  #2  
Old 26-03-2009
Member
 
Join Date: May 2008
Posts: 2,383
Re: Word search on page

There you go in any case need javascript as it should look for any change.
You do this by the attribute "onChange to use.

Then you need a javascript array with all the hits to find the piece that is wanted, and if the letters are in that array, you need the data as output.

The only thing I can not help you, it is effective, but it helps you do a piece on the road I hope.
Reply With Quote
  #3  
Old 26-03-2009
Member
 
Join Date: Feb 2008
Posts: 1,848
Re: Word search on page

you can anchor, but then you must make sure that the change is implemented:

should be left in the format:

Code:
Quote:
<a name="google" href="www.google.com"> google </ a>
<a name="ta" href="www.ta.in"> ta </ a>
<a name="yok" href="www.yok.in"> google </ a>
Your search thing to just redirect www.site.in / page.html # Searchterm eg page.html # breeding, and then get so off. The user must be exactly the right type anchor name
Reply With Quote
  #4  
Old 26-03-2009
Member
 
Join Date: Dec 2008
Posts: 322
Re: Word search on page

That seems to me something, even though this is not so hard to put it is not very practical (I think in each case). But it is indeed an option.
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Word search on page"
Thread Thread Starter Forum Replies Last Post
How can I search for all files in windows vista by a word or phrase in the standard XP search box? Shazid Operating Systems 4 05-04-2011 04:29 AM
New Google Search Page Maq.H Technology & Internet 2 19-05-2010 07:29 AM
PHP to search contents on web page Jensen Ackles Software Development 5 09-04-2010 02:48 AM
Why I cannot search my page on Google? Barsha Technology & Internet 4 11-03-2010 03:48 AM
How To Put Page Numbers In Ms Word? Rob Dizzle Windows Software 3 02-12-2006 04:33 AM


All times are GMT +5.5. The time now is 03:59 PM.