PDA

View Full Version : JavaScript problem


meikel
04-18-1999, 06:51 PM
Hi,

today, I'm programming some JavaScript. Most stuff is working, but I have one problem left.

I'm opening a new window based that should load a specific page containing lots of images. The script later changes all these images.

So I need to check if the new window has finished loading or all the images are just unknown to Netscape. Is there a function to see if a new window has finished loading?

Greetings from Bonn, Germany
[nbsp][nbsp]Meikel Weber
www.meikel.com (http://www.meikel.com)

Del
04-18-1999, 08:22 PM
You may want to try using the onLoad() function in the new opened window. You could use it (in theory) to set some variable in the original page once it's done, or change the value of a hidden form field in the original page, or something. Then, the code that does the image swapping could check that value and act accordingly, or if that value is not yet set, or incorrect, set a waiting period before having it check that value again (and repeat n times or until the value is set properly)

Maybe

Del
--It all keeps adding up--