PDA

View Full Version : NN- Can page reloading be prevented?


zazen
08-15-2002, 08:10 PM
I'm trying to avoid re-loading a page when a NN browser is resized. Tried "on resize" which doesn't work. Any help appreciated....

Graeme Hackston
08-16-2002, 01:14 AM
Could you post the code that reloads the page?

And, do you mean all NN browsers or specific versions?

glenngv
08-16-2002, 02:05 AM
that is a known bug (or specification) for all versions of Netscape
ive read it somewhere, just forgot the url.

Spookster
08-16-2002, 05:46 AM
You cannot prevent NS4.x from reloading when the browser is resized.

Typically if NS4.x is resized you want to ensure that the page is reloaded especially if you are working with layers as the page will get screwed up looking. This is a script generated by Macromedia Dreamweaver that addreses the resize fix:

<script language="JavaScript">
<!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//-->
</script>