View Full Version : How to get info about the iframe data loading?

03-16-2005, 07:00 PM

I need the event that will occure when iframes starts to load new data. I've tryed "onload". But it starts when the iframe is loaded completely. And it don't work in IE at all.

Somebody knows about the event that will happen before iframe will start to load? Or any other method to trace the loading/reloading process.

Any suggestions will be appreciated.

Best regards. Eugene.

03-16-2005, 07:56 PM
Onload should apply, but um... there's the onreadystatechange Event (http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/reference/events/onreadystatechange.asp) & readyState Property (http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/reference/properties/readystate_1.asp) too. ;)

03-17-2005, 01:24 PM

The onreadystatechange event works good. But only in IE... This event dont occure in Firefox browser.

Is there any alternative event fot the Netsape/Mozilla browsers?

03-17-2005, 01:41 PM
You can find out @ mozilla.org... :)

03-17-2005, 01:57 PM
I've solved this problem. I've combined the onload and onreadystatechange events. Now it works ok. Thank you for your help.