473,473 Members | 1,488 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

how to call javascript functions on onload and render events of iframe?

16 New Member
Hi

I wants to display a stopwatch on my page, it will starts count on when iframe in the page starts loading and stop on finishing loading for finding the time taken for executing particular procedure. I have the javascript function to start and stop stopwatch. But the problem is when it will call. i have tried onload, prerender events of iframe, but browsers are not supporting this events. If u have any good suggestions please help.....

Anoop S.
Mar 19 '11 #1
2 4187
acoder
16,027 Recognized Expert Moderator MVP
onload would be fired when the page has loaded. You could try calling it whilst the page is loading (at the top), but if you want to display the stopwatch, it probably won't work.

The other option is to display the stopwatch only and use JavaScript/Ajax to load the content, though that would only make sense if you know for certain that all your users will have JavaScript enabled.
Mar 21 '11 #2
anoop s
16 New Member
Thanks, I used another idea to display stopwatch, used wait.aspx to display stopwatch...

pls go through this link .. http://msdn.microsoft.com/en-us/magazine/cc164051.aspx
Jul 26 '11 #3

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

Similar topics

2
by: Ask Josephsen | last post by:
Hi NG Is it possible to make a javascript call before "<body onload='...'>"? What I'm doing is a preview of numerous images in an iframe and I want to resize the iframe to match each picture....
3
by: Christine | last post by:
Hello, I have a webpage, and I need to display a menu of 4 items...when one of the items is selected, I want it to call a script that creates the related pop-up window. I currently have the...
9
by: Paul | last post by:
HI! I need to call a function that is located in the parent. I need it so that it calls when the child page in the iframe loads. Would it be better to use an onload event in the body? if so how...
2
by: ananta.hingne | last post by:
Hi i hv designed one user control, and used on my aspx pages whereever needed. my user control does not have <body> tag. now i want to call some javascript function onload of this user...
3
by: Matthew Lock | last post by:
Hello, I am automating Internet Explorer in order to do some simple automated testing of a web application. How do I invoke Javascript functions in the web page I load? I can successfully start...
3
by: tushargargus | last post by:
I would like to know that how can I find which javascript file is being called when I call a javascript method in a jsp file? I know there is one way we specify this in the script tag. But what if we...
7
by: shahidrasul | last post by:
i have two problem 1. how to call a javascript function from form page and also how to call c# function from javascript because when user click on button i want to validate field of form and if...
1
by: Prajaktaj | last post by:
Hi All, I am working on sharepoint and I have included the content editor web part in it. There we can write the html file in it. I know that we can call javascript functions from html by using...
4
by: omar999 | last post by:
i'm working with a city select option, a hotel select option & an iframe. the hotel select option is populated depending on the chosen city which then updates the iframe src. this is all working...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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,...
0
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...
0
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...
1
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
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...
0
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
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
muto222
php
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.