Solved

i like to wait till iframe is loaded

Posted on 2003-11-11
8
814 Views
Last Modified: 2008-02-01
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
Comment
Question by:happymanocha
8 Comments
 

Expert Comment

by:sh_shine
ID: 9721424
Hi happymanocha

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

are u yet awake??
shine
0
 
LVL 5

Accepted Solution

by:
ho_alan earned 250 total points
ID: 9721871
0
 
LVL 75

Expert Comment

by:Michel Plungjan
ID: 9722034
:)
0
6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

 
LVL 5

Expert Comment

by:ho_alan
ID: 9722074
thx, Michel!
0
 

Expert Comment

by:Dopeman
ID: 9722260
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
 
LVL 75

Expert Comment

by:Michel Plungjan
ID: 9722862
That is hitting the server rather hard I must say
0
 
LVL 16

Expert Comment

by:jaysolomon
ID: 10353338
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

In my daily work (mainly using ASP.net), I need to write a lot of JavaScript code. One of the most repetitive tasks I do are the jQuery Ajax calls. You know: (CODE) I don't know if for you it's the same, but for me is soooo tedious to write the …
This article will give core knowledge of JavaScript and will head in to your first JavaScript program. I am Durvesh Naik and I am here to deal with this series of JavaScript. I will teach you JavaScript in part wise , as its quite boring to read big…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now