Link to home
Start Free TrialLog in
Avatar of happymanocha
happymanocha

asked on

i like to wait till iframe is loaded

Hii friends
i am facing one problem ..
i am creating one Iframe and after some processing(assigning it some src)  i m calling open() function in in which this iframe is getting opened, but some times
a new window is opening and source assigned to iframe is opening in new window.
i analysed the problem behind this is, when open function is called still iframe is not loaded properly. so open function call should wait till i frame is loaded. but i don't know how to do this. can u tell how can i implement this.

Thanks
happymanocha@yahoo.com
Avatar of sh_shine
sh_shine

Hi happymanocha

try this
call onload event in iframe tag
not sure..

are u yet awake??
shine
ASKER CERTIFIED SOLUTION
Avatar of ho_alan
ho_alan

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Michel Plungjan
:)
thx, Michel!
well ihad the same problem and i solved it like this:

i have one iframe which loads the loading.php on page one.php like this:

<iframe src="loading.php" width="100%" height="100%" name="content"></iframe>




this is my loading.php and it will refresh itself after 0 sek but only if page two.php has finished loading and it will while loading show  "loading page two.php"

<html>
<head>
<TITLE>
</TITLE>
<meta http-equiv="refresh" content="0; URL=two.php">
</head>
<body>
loading page two.php
</body>
</html>

this is all you have to do an the reload will always wait and show "loading page two.php" until page two.php has finished loading in the background and then show it

hope i could help
Dope
That is hitting the server rather hard I must say
No comment has been added lately, so it's time to clean up this TA.
I will leave the following recommendation for this question in the Cleanup topic area:

Accept: ho_alan {http:#9721871}

Please leave any comments here within the next four days.
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

jAy
EE Cleanup Volunteer