Solved

i like to wait till iframe is loaded

Posted on 2003-11-11
8
822 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: DanRollins
This article describes a JavaScript program that creates a maze made of hexagonal cells.  In Part 2 (http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/A_7850-Hex-Maze-Part-2.html), we'll extend the program by adding a depth-…
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
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…

896 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

17 Experts available now in Live!

Get 1:1 Help Now