473,503 Members | 1,803 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 3127
acoder
16,027 Recognized Expert Moderator MVP
Yes, you could have a hidden div or image on the page (display:none or visibility:hidden) 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
7196
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
1357
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...
3
3928
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...
26
3194
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
3661
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...
4
1640
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...
5
7341
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"...
1
4870
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...
4
3181
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...
0
7086
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
1
6991
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...
0
7460
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5578
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,...
1
5014
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...
0
3167
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...
0
3154
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1512
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
736
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.