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?
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?
Comment