aprestong
05-17-2007, 01:38 AM
Hi everyone -
I'm using an iframe with a GET variable to execute a php script that could take up to a minute to execute - I'm calling the DIV containing the iframe via an AJAX script -
I'd like to display a nice loading bar .gif and when the iframe is loaded use innerHTML to change my "status" div that is above the div containing the iframe.
<iframe onload=..> works perfectly fine in IE and Firefox - but safari won't support the iframe onload event.
is there a way to accomplish this? I basically want to change the innerHTML of my "status" div when the iframe is finished loading - of course I can't call parent.getElementById from the document in my iframe because the page the iframe is loading is not in the same domain.
I'm not having any luck with window.onload, either - but I don't know if that is even an acceptable substitute.
Anyone have any suggestions?
I'm using an iframe with a GET variable to execute a php script that could take up to a minute to execute - I'm calling the DIV containing the iframe via an AJAX script -
I'd like to display a nice loading bar .gif and when the iframe is loaded use innerHTML to change my "status" div that is above the div containing the iframe.
<iframe onload=..> works perfectly fine in IE and Firefox - but safari won't support the iframe onload event.
is there a way to accomplish this? I basically want to change the innerHTML of my "status" div when the iframe is finished loading - of course I can't call parent.getElementById from the document in my iframe because the page the iframe is loading is not in the same domain.
I'm not having any luck with window.onload, either - but I don't know if that is even an acceptable substitute.
Anyone have any suggestions?