Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > Search only the page (need search of value of textboxes as well)

Reply
Thread Tools

Search only the page (need search of value of textboxes as well)

 
 
sancha
Guest
Posts: n/a
 
      08-05-2005
I have a prompt in which the user inputs the search field.
I would like to highlight the places where the search matches.

The problem i am facing is that the page consists of text on the page
as well as text in textboxes and text areas and combo boxes.

I tried using
var searchrange = window.document.body.createTextRange()
and searching within that.
this gives me only the text on the screen and the text areas and not
the text boxes. the text in the range shows the text on alert but
dosent search within that.
alert(searchrange.txt);

shows the values but dosent find them

Please help
Thanks in advance

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Passing Multiple (Controls) Dropdownlists to Another Page's Textboxes Angel.Net ASP .Net 1 06-15-2005 01:10 PM
Get Value From Dynamically Created TextBoxes...... RC ASP .Net 1 06-07-2005 05:44 AM
Accessing textboxes from ascx control on parent page mollyf@hotmail.com ASP .Net 0 04-29-2005 07:57 PM
Comma appended to textboxes when retrieving value! Victor ASP .Net Web Controls 1 04-29-2005 02:14 PM
value of textboxes in browser does not match what is in viewsource ? Mad Scientist Jr ASP .Net 1 07-15-2004 02:11 PM



Advertisments