Log in

View Full Version : iframe loading time.



chetanmadaan
10-07-2011, 11:35 PM
We have a page and under that we are calling an iframe which is taking a lot of time to load.

what we want to do is change the text under the page once the iframe is loaded.

so... the iframe is actually a PDF and we want to display the text... please wait your PDF is being generated.

once the iframe is loaded... we want to say... "your PDF has been loaded."

Is this possible??

Thanks

molendijk
10-08-2011, 12:57 AM
<body onload="document.getElementById('some_id').innerHTML='please wait your PDF is being generated' ">
<iframe src=your PDF onload="document.getElementById('some_id').innerHTML='your PDF has been loaded' "></iframe>
</body>
And, of course, you should put your div somewhere, with id="some_div".
===
Arie Molendijk.