PDA

View Full Version : readyState



dallen24
Jul 1st, 2002, 06:49 PM
Hi. Does anyone know a Netscape equivalent of the Internet Explorer document.readyState? From one frame, I want to load another frame with a htm or text file. I want to then search for text, but only when it's completely loaded...Dennis

jkd
Jul 1st, 2002, 10:17 PM
Why don't you use the onload event? That's what it is there for. ;)

dallen24
Jul 2nd, 2002, 02:59 AM
Originally posted by jkd
Why don't you use the onload event? That's what it is there for. ;)

Two reasons. First, I'm using one frame to load another. Second, I might load a txt file in the other frame, not a htm file.

jkd
Jul 2nd, 2002, 03:48 AM
Hvae you even tried onload? I know a member here managed to parse Text nodes out of a .txt file loading in an iframe in Mozilla. It created a DOM for the txt file, and I have a hunch that the load event would fire for an iframe loading the txt file.In Gecko at least...

dallen24
Jul 2nd, 2002, 05:58 PM
Originally posted by jkd
Hvae you even tried onload? I know a member here managed to parse Text nodes out of a .txt file loading in an iframe in Mozilla. It created a DOM for the txt file, and I have a hunch that the load event would fire for an iframe loading the txt file.In Gecko at least...

I've tried parent.frames[1].onload="alert('hi')" ; parent.frames[1].location.href="temp.txt". The onload event doesn't fire. If I try parent.frames[1].location.href="temp.htm", the onload event in temp.htm fires, but I don't get a 'hi'.

Is there possibly another way to determine if a page is loaded? Maybe by testing if an object exists...Dennis