Click to See Complete Forum and Search --> : froze the screen


drewex
12-09-2003, 01:38 PM
Hi all

Im trying to freeze everything like the buttons links javascript func. on the parent while the iframe loads up. I tried this code below but it opens a popup and i dont want a popup, any ideas?
in the parent
wintest=window.open("","popup","top=100,left=200")

later on at the end of the frame
parent.wintest.close();

so it will open a popup a page to make them wait. disgusting is it. show me a another way please.

TheBearMay
12-09-2003, 02:28 PM
Easiest thing to do may be to encase everything within a DIV, set the visibility to hidden, and then unhide it when the document has loaded.


...
<body onload="loading.style.visibility='hidden';hideAll.style.visibility='visible'">

<div id='loading'>
Loading please wait....
</div>

<div id='hideAll' style="visibility:hidden">
<button....
<iframe src=....>
</div>

</body>
</html>

drewex
12-09-2003, 02:33 PM
but i open the frame a lot of times and while the screen is running. It would be wierd to hide everything from the user. Theyll get confused.