Click to See Complete Forum and Search --> : Resize problem in Netscape browser only


florida
12-02-2002, 06:26 AM
My Cold Fusion page will not resize in Netscape 4.77 browser. It has no problem with IE but in Netscape 4.77 it gives a blank browser screen after I resize it. I then have to hit the Reload button to get my Cold Fusion page back up.

Any suggestions on how I can correct this problem in Netscape 4.77?? Is there something in Javascript I can do to automatically reload screen after a resize???

Stefan
12-02-2002, 06:44 AM
You can try this

<script type="text/javascript">
<!--
NS4 = document.layers;
if (NS4) {
origWidth = innerWidth;
origHeight = innerHeight;
}

function reDo() {
if (innerWidth != origWidth || innerHeight != origHeight)
location.reload();
}

if (NS4) onresize = reDo;
//-->
</script>

or a bit shorter
<script type="text/javascript">
if(document.layers){origWidth=innerWidth;origHeight=innerHeight;onresize=function(){if(innerWidth!=o rigWidth||innerHeight!=origHeight)location.reload()}}
</script>

florida
12-02-2002, 07:37 AM
Thanks!

florida
12-02-2002, 07:44 AM
If possible can you please explain what these variables represent? Are they x and y cordinates and what browser part do they represent??


origWidth = innerWidth;
origHeight = innerHeight;

Stefan
12-02-2002, 09:08 AM
Originally posted by florida
If possible can you please explain what these variables represent? Are they x and y cordinates and what browser part do they represent??


origWidth = innerWidth;
origHeight = innerHeight;

innerWidth and Height is the actual useable space in pixels in the browser window.

florida
12-02-2002, 11:33 AM
Thanks again.