Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

i like to wait till iframe is loaded

Posted on 2003-11-11
8
Medium Priority
?
842 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 1000 total points
ID: 9721871
0
 
LVL 75

Expert Comment

by:Michel Plungjan
ID: 9722034
:)
0
The top UI technologies you need to be aware of

An important part of the job as a front-end developer is to stay up to date and in contact with new tools, trends and workflows. That’s why you cannot miss this upcoming webinar to explore the latest trends in UI technologies!

 
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

The top UI technologies you need to be aware of

An important part of the job as a front-end developer is to stay up to date and in contact with new tools, trends and workflows. That’s why you cannot miss this upcoming webinar to explore the latest trends in UI technologies!

Question has a verified solution.

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

JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
This article discusses how to create an extensible mechanism for linked drop downs.
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…

670 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