Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 850
  • Last Modified:

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
0
happymanocha
Asked:
happymanocha
1 Solution
 
sh_shineCommented:
Hi happymanocha

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

are u yet awake??
shine
0
 
Michel PlungjanIT ExpertCommented:
:)
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
ho_alanCommented:
thx, Michel!
0
 
DopemanCommented:
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
0
 
Michel PlungjanIT ExpertCommented:
That is hitting the server rather hard I must say
0
 
jaysolomonCommented:
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
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now