473,385 Members | 1,856 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Check that child window is done loading external http url

ng
i want to open 10 external urls one after the other(preferably in same
window) only after the previous one gets loaded successfully

Jul 23 '05 #1
3 3409
Hello

First, in your main window, you set the onload handler as:

maindoc's onload="open_window1();"

Then in window1's onload handler: "window.opener.window.open_window2();"

etc...
the main doc contain all the window creation code.

HTH,
Elias
"ng" <ng*****@gmail.com> wrote in message
news:11**********************@g43g2000cwa.googlegr oups.com...
i want to open 10 external urls one after the other(preferably in same
window) only after the previous one gets loaded successfully

Jul 23 '05 #2
ng
did u mean this?

function w1open()
{
alert("window loaded");
}
function wackOpen(){
var
my_window1=window.open('http://www.gmail.com','','left=20,top=20,width=2,hei
ght=2');
my_window1.onload="w1open()";
}

but this didnt work.. could you modify the code and make it work pls

Jul 23 '05 #3
ASM
ng wrote:
did u mean this?

function w1open()
{
alert("window loaded");
}
function wackOpen(){
var
my_window1=window.open('http://www.gmail.com','','left=20,top=20,width=2,hei
ght=2');
my_window1.onload="w1open()";
}

but this didnt work.. could you modify the code and make it work pls


on my idea, only the page in the popup
can tell you it is loaded.

perhaps ? :

my_window1.document.onload="w1open()";

--
Stephane Moriaux et son [moins] vieux Mac
Jul 23 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Joe D | last post by:
I think this is a simple question. But I am new to JS. Here is what I want to do: From a parent window, open a popup window (child) to get data from user, then user submit the request, close the...
6
by: Brian | last post by:
Hi everyone, I'm writing a function (in javascript) that needs to do one thing if the page has not loaded, and another (different) thing if the page has already loaded. I'm looking for a way...
2
by: Raj | last post by:
Hi All, I have a problem with trying to refresh the parent window from child window in order to update data in the parent window. The sequence of events are 1) I click a button in the parent...
0
by: bhchng | last post by:
After I click the submit button on my child window, it successfully navigate the parent window to the indicated URL and close the child. But I dont understand why the child window reopen a new...
10
by: Charles Law | last post by:
For some reason, when I click the X to close my MDI parent form, the action appears to be re-directed to one of the MDI child forms, and the parent remains open. I am then unable to close the...
6
by: Jack | last post by:
I have a main webpage that has a list of records, each with a link to a window.open function call. As an example, a page that opens is editrecord.aspx?RecordID=34, and another is...
10
by: morangolds | last post by:
Hi, I've been having a problem with C++ Windows Forms apps not "ending" when you close the form window. I've searched about this problem all over the place and most searches have lead me to...
3
by: AboutJAV | last post by:
Hi, I created a child dialog to tell the user that there is a loading of data from the database. When the loading is done, the child dialog will close. The child dialog contains a custom control...
20
by: Mark Anderson | last post by:
Hi, I have this in an external JS library: ///////////////////////// function addMyEvent(){ var obj; if(document.attachEvent) { obj = document.getElementsByTagName('img'); for...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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...
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...

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.