Web Analytics Made Easy -
StatCounter readyState - CodingForum

Announcement

Collapse
No announcement yet.

readyState

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • readyState

    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

  • #2
    Why don't you use the onload event? That's what it is there for.
    jasonkarldavis.com

    Comment


    • #3
      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.

      Comment


      • #4
        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...
        jasonkarldavis.com

        Comment


        • #5
          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

          Comment

          Working...
          X