homepage Welcome to WebmasterWorld Guest from 54.227.41.242
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
Forum Library, Charter, Moderator: open

JavaScript and AJAX Forum

    
JavaScript
what's this?
keyplyr




msg:1482412
 8:27 am on Dec 17, 2001 (gmt 0)

Could someone please explain this?

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);

 

nicebloke




msg:1482413
 11:30 am on Dec 17, 2001 (gmt 0)

Looks like the Dreamweaver command to fix some Netscape 4* rendering bug.

[cauzway.net...]

knighty




msg:1482414
 3:58 pm on Dec 17, 2001 (gmt 0)

Yup,

Thats right, normally if you try to resize Netscape the page can screw up especially if you are using layers.

So as soon as the window is made smaller/bigger this baby kicks in and refreshes the page and thus avoiding usual garbled Netscape page.

keyplyr




msg:1482415
 8:14 pm on Dec 17, 2001 (gmt 0)

Ah... thanks

This is set up as a JavaScript. Would this aid in pop-up windows made with JavaScript? And could this be run as a stand alone JavaScript called from the HEAD or is the rest of the Dreamweaver stuff required?

txbakers




msg:1482416
 8:24 pm on Dec 17, 2001 (gmt 0)

It's just a JavaScript. It's only relation to Dreamweaver is the MM_ before everything.

You can use it anywhere you can use a JavaScript.

keyplyr




msg:1482417
 10:23 pm on Dec 17, 2001 (gmt 0)

>You can use it anywhere you can use a JavaScript.

Would/Should I remove the MM_s then?

txbakers




msg:1482418
 10:35 pm on Dec 17, 2001 (gmt 0)

You don't have to. If you DO remove it, make sure you remove it everywhere it might look for it. Javascript is case sensitive

keyplyr




msg:1482419
 11:36 pm on Dec 17, 2001 (gmt 0)

Thanks again.

I have a lot of pop-up windows. I hope the NN4 users benefit by this.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved