Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: how to resize frames when one frame finishes loading


Message #1 by "nick" <nick@i...> on Mon, 8 Oct 2001 11:12:35
Nick,

Are there other constraints that require that you do this that way?

If you're looking for a way to render something complex into an off-screen 
buffer, then display the result when you're through, you might try 
something akin to:

<body 
onload="simpleDiv.style.display='none';complexDiv.style.display='block';">

<div id="simpleDiv" style="display:block">Please wait...</div>
<div id="complexDiv" style="display:none">
<!-- stuff that would take a while to render -->
</div>
</body>

I'm not sure of the browser compatibility issues here, however.

-Tim

> Hi all,
> 
> I need to have a frameset with two frames, one frame at height 0 (i.e. 
> hidden) and the other displaying a 'page loading' message. When the 
hidden 
> page is finished loading i want to resize the frames so the hidden page 
> now appears and the 'page loading' frame resizes to 0 rows height.
> 
> How can i go about doing this?
> 
> thanks,
> 
> Nick

  Return to Index