What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » html help (iframe and find on page script)

html help (iframe and find on page script)
Author: Message:
jordanspringer
Full Member
***

Avatar
jjordann

Posts: 369
Reputation: 5
– / Male / –
Joined: Oct 2003
O.P. html help (iframe and find on page script)
Hey i'm trying to make a simple website to help me at work, while i work.

I am looking to add a text field to my webpage that allows you to search inside the webpage, very similar to how Ctrl + F works in IE. I found this script on Dynamic Drive that seems to work great, but then i started having some problems

Dynamic Drive - Find in Page Script

I am wondering how I can adjust the HTML of that code so that it only searches for whole words and not parts of words. For example if i search the word "under" i wouldnt want results like "underwear" to show up.

Also, I am using iframes, so that the search box stays at the top of the webpage at all times, and searches in the iframe below it. That was no problem. I have set up the script to search in the correct iframe. However... when you load the webpage into another iframe that has the "find script", it all of a sudden doesn't work. If this is hard to understand look at my example:

http://www.l4l.ca/helpme

When testing the search function, search for these words: "sna", "rsw", "lax".

Load the page in a separate window and the script works fine (except for searching whole words only).

When you load the page into an iframe, the script stops working completely.

If anyone can assist me in anyway that would be awesome:D Thank you very much!!!
[Image: name4ld.png]
07-09-2006 12:24 AM
Profile E-Mail PM Web Find Quote Report
RaceProUK
Elite Member
*****

Avatar

Posts: 6073
Reputation: 57
39 / Male / Flag
Joined: Oct 2003
RE: html help (iframe and find on page script)
code:
var frametosearch = 'altFrame';
Change to 'mainFrame'?
[Image: spartaafk.png]
07-09-2006 12:44 AM
Profile PM Web Find Quote Report
jordanspringer
Full Member
***

Avatar
jjordann

Posts: 369
Reputation: 5
– / Male / –
Joined: Oct 2003
O.P. RE: RE: html help (iframe and find on page script)
quote:
Originally posted by RaceProUK
code:
var frametosearch = 'altFrame';
Change to 'mainFrame'?


nah that wouldn't work. the frame i want to search is 'altFrame' which is the frame below the "Search button". 'mainFrame' is the frame used to load the webpage in.
[Image: name4ld.png]
07-09-2006 12:46 AM
Profile E-Mail PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On