Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New Coder
    Join Date
    Jun 2002
    Posts
    70
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Loading/Finding text in Netscape

    Hi. I've created a google like search on my web site. Been trying to improve this search and need some help.

    This is what I do. From one frame, I'll load another frame with either a text or html file. Once loaded, I perform a text search. If found, I'll scroll the text into view.

    First problem. To load a page in IE, I use parent.frames[1].document.readyState == "complete" in a setTimeout loop. Netscape doesn't have a document.readyState or a document.onreadystatechange. I use parent.frames[1].document.URL=="name" in a setTimeout loop, but is there something more reliable? How about a typeof(window.object) == "object" in a setTimeout loop?

    Next problem. Netscape 6.01 doesn't have a NN4 find(). Also doesn't have an IE findText(), select() or scrollIntoView(). Question. Can I use JavaScript to perform a [Ctrl]-[F] search?

  • #2
    jkd
    jkd is offline
    Senior Coder jkd's Avatar
    Join Date
    May 2002
    Location
    metro DC
    Posts
    3,163
    Thanks
    1
    Thanked 18 Times in 18 Posts

    Re: Loading/Finding text in Netscape

    Originally posted by dallen24
    Next problem. Netscape 6.01 doesn't have a NN4 find(). Also doesn't have an IE findText(), select() or scrollIntoView(). Question. Can I use JavaScript to perform a [Ctrl]-[F] search?
    I wrote a find() script that works in NS7 (not 6) because of its use of the TreeWalker interface that was implemented in Mozilla after the last NS6 release... once I get my other pc back online I can post it for you.

  • #3
    New Coder
    Join Date
    Jun 2002
    Posts
    70
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Re: Loading/Finding text in Netscape

    Originally posted by jkd


    I wrote a find() script that works in NS7 (not 6) because of its use of the TreeWalker interface that was implemented in Mozilla after the last NS6 release... once I get my other pc back online I can post it for you.
    Thanks. Really appreciate it...Dennis

  • #4
    jkd
    jkd is offline
    Senior Coder jkd's Avatar
    Join Date
    May 2002
    Location
    metro DC
    Posts
    3,163
    Thanks
    1
    Thanked 18 Times in 18 Posts
    Take a look in the "Post a Javascript" forum .


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •