WebFX WebBoard
Message Thread:
View All Messages
Back to WebFX
 document.readyState equivalent in Mozilla, Mark Williams, February 24, 2005
     Re:document.readyState equivalent in Mozilla, Idris, February 25, 2005
         Re:document.readyState equivalent in Mozilla, Mark Williams, February 28, 2005

Subject: Re:document.readyState equivalent in Mozilla From: Idris Date: February 25, 2005

I'm not sure if I fully understand your question, but can't you just make a variable in the main page like var isComplete; and then set that to what you want from the other iframes?
As for the dialog box, are you talking about a plain old confirm() box? That just returns true or false depending on what they click, so you can just do if(confirm("are you sure?"))

From: Mark Williams
Sent: Feburary 24, 2005
Subject: Re:document.readyState equivalent in Mozilla

Hi,

I've got a multi iframed application. I'm using onbeforeunload to trap unsaved changes but, for various reasons, I need to find out whether the user has pressed OK or Cancel on the dialog box.

In IE I can test the readyState of the document so that if they've pressed OK its "loading" and cancel "complete". Any ideas how to achieve this in Moz?

ta

m





Reply
Name: 
Email: 
Subject: 

Enter your reply to this message below. HTML tags are not supported but words that start with http://, ftp:// or mailto: are converted to links.


View All Messages
Back to WebFX