How to know whether the iframe is fully loaded or not from the main html/jsp
HI
In my main html I am calling one method of my child iframe. So what happens is that if the iframe is not fully loaded and if the main html is trying to call the html run time script error is coming.
To prevent that I have to know whether the iframe is fully loaded before calling the method in my main html
Is there any way???
Pls help me ASAP....
# 1 Re: How to know whether the iframe is fully loaded or not from the main html/jsp
Hi,
Haven't tried this but it might work, declare a javascript variable at the top of the HTML page going to the IFrame as FALSE, then set it to true right at the bottom of the page. Check this variablke for TRUE from your other page to see if the page has been fully loaded.
Bnt at 2007-11-8 0:40:51 >

# 2 Re: How to know whether the iframe is fully loaded or not from the main html/jsp
Give the iframe an ID attribute.
<iframe id="theframe"></iframe>
Now, give it an onload command using the other window...
parent.getElementById('theframe').onload = ...