473,569 Members | 2,790 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

before iframe load displaying for 10sec somthing

Fary4u
273 Contributor
I've got iframe when somebody click on the button it's display on the webpage but it's take about 10 sec to load before that any possibility to display something wd div script or any javascript ( HTML, IMG ) ?
Feb 3 '09 #1
7 3128
acoder
16,027 Recognized Expert Moderator MVP
Yes, you could have a hidden div or image on the page (display:none or visibility:hidd en) which you would show when the button is clicked (style.display = 'block') and hide again when the iframe has loaded.
Feb 3 '09 #2
Dormilich
8,658 Recognized Expert Moderator Expert
you could try the network module of FireBug/Firefox to see, what the actual load times are.
Feb 3 '09 #3
Fary4u
273 Contributor
Yes the same thing i'm doing but i want 10 sec timer or something ?

Expand|Select|Wrap|Line Numbers
  1. <div style="display:none" id="pic">
  2.   <iframe name="wait" src="show_img.asp" border="0" ></iframe>
  3. </div>
  4.  
  5. document.getElementById("pic").style.display='inline';
i want just timer or something else to show like this ?

Display please wait picture before the show_img.asp is not loaded ?
by default it's not executed it's only displaying when somebody click on it.
Feb 3 '09 #4
shweta123
692 Recognized Expert Contributor
Hi,

Please refer this thread:
http://www.codingforums.com/archive/...p/t-68482.html
Feb 3 '09 #5
acoder
16,027 Recognized Expert Moderator MVP
So you want the iframe to show only after it's loaded? Use the iframe onload event handler to show the iframe when ready.
Feb 3 '09 #6
Fary4u
273 Contributor
@acoder
yes i've used this but it's came up very quickly
i've trying to use onafterupdate but it's don't work &
i've not came cross some gud example : (
Feb 23 '09 #7
acoder
16,027 Recognized Expert Moderator MVP
If it loads quickly, then there's no need to display a wait/loading message. If it does take 10 seconds or so, the onload will be fired when the iframe has loaded at which point you can hide the div/image.

If you insist on showing it for 10 seconds, you can use setTimeout(), but it would be unreliable because the iframe may take longer to load or it might load in only 2-3 seconds.
Feb 23 '09 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

1
7217
by: Mel | last post by:
how can i wait for one iframe to completely load before loading a second one ? thanks for your help
1
1363
by: Adrian | last post by:
Hi I want to insert a html page within a cell of a table on an html page. I did this by using an Iframe and it works but not on first load! Each time I go to the page cold I need to hit refresh for the iframe loaded page to display!!! Is there a better way to do this or is the iframe the correct way? This is only for users of IE.
3
3955
by: Stevie_mac | last post by:
It might be me but... I dont seem to get a Page_Load event when a opening an ASPX in an iFrame. I do geta Page_Load event when an item on the ASPX (inside the iFrame) is clicked but then IsPostBack=False by now!. The ASPX is opened via client side script (into an iFrame) inside a .HTM file (as ASPX postback causes problems in a modal...
26
3210
by: shlomi.schwartz | last post by:
using this example: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>Test Page</title> </head>
3
3667
by: jshanman | last post by:
If I try to put a site into an iframe that has "escape frame" code in its source (posted below), it will reload the requested page into the parent instead of the iframe. Is there a way to prevent this from happening? One could use onunload to stop the redirection, but I would like to find a way to load a page into an iframe, even if it has...
4
1651
by: Mugs321 | last post by:
Hey all, Here's the deal... I have an iframe which I am using a to print a certain page without displaying said page. I've use this technique in other areas of my site and they work like a charm. Using the same code as all the other pages: From page with print icon: function printStudents(url1){ objFrame =...
5
7349
by: BerlinBrown | last post by:
Do you know if it is possible to wait for the iframe page to load and then manipulate the iframe DOM. E.g. mypage: <script> function myinit() { theiframe.location = "iframe_with_frames.html" waitforiframe() { theiframe.frames.location ="mynewpage3.html";
1
4884
by: cdmsenthil | last post by:
I have an Infragistics UltrawebGrid . Each Row in the grid is attached to a context menu using Infragistics CSOM Upon click on the menu, I am creating an Iframe dynamically which points to another page in the same domain which also contains infragistics datagid populated with default data retrieved from Data Base. After creating the frame I...
4
3187
by: raymon | last post by:
Hi, I have a page with two iframes that load content from another website. Only one of the iframes is shown at a time, depending on which tab the user is viewing. If user clicks on tab A, he will see iframe A. Same for tab B. Users arrive to the page via POST. Sometimes they see iframe A, sometimes they see iframe B, depending on the inputs...
0
7921
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8118
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7666
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6278
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5504
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5217
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3651
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3636
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1208
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.