Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript_howto thread: Prevent a frame from opening until another frame stops loading


Message #1 by "Luís Pinho" <lspinho@m...> on Thu, 14 Nov 2002 19:28:08
Try using an on load event in the one you want to load first to load the 
second one.

At 19:28 14/11/02 +0000, you wrote:
>Hi There,
>
>    I've got a page divided by 3 frames, in the body frame I load a page
>that requires information that exists in the toc frame.
>
>    The big problem is when I have to reload both of them, what I need to
>know is:
>
>    Is there any way of loading the body frame only after the toc frame is
>fully loaded?
>
>I use the following script to load both pages:
>
><script>
>     parent.toc.location.reload()
>     window.location.href="editarprojecto.jsp?proj_name="+projectName);
></script>
>
>If I put an alert between the two lines I get the expected effect (because
>it gives the toc frame enough time to load completely)
>
>I don't want to use some crazy scheme (like making a cycle to pass some
>time or wait some time...) I would like to catch an event or something
>similar.
>
>Thank You
>
>Pinho
>




  Return to Index