Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search function

Status
Not open for further replies.
What are you searching? Just text in an iframe? Is the iframe content dynamic?

Is the iframe content in the same domain as were the search function is going to be?

How do you want to return results?




----------------------------------
Phil AKA Vacunita
----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.

Behind the Web, Tips and Tricks for Web Development.
 
You could search the content with a JS string match, but you can't really do any thing more than maybe get text around the matched string.

Possibly you could scroll down to the first match in the frame.

Look into the string.match function. And the scrollTo method to get the iframe to move to the position of the first result.

Other than that I think the search function that is available in any browser menu would do better than trying to re-invent the wheel in JS.



----------------------------------
Phil AKA Vacunita
----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.

Behind the Web, Tips and Tricks for Web Development.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top