homepage Welcome to WebmasterWorld Guest from 54.237.98.229
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
Forum Library, Charter, Moderator: open

JavaScript and AJAX Forum

    
JavaScript
what's this?
keyplyr

WebmasterWorld Senior Member keyplyr us a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



 
Msg#: 22 posted 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

10+ Year Member



 
Msg#: 22 posted 11:30 am on Dec 17, 2001 (gmt 0)

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

[cauzway.net...]

knighty

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 22 posted 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

WebmasterWorld Senior Member keyplyr us a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



 
Msg#: 22 posted 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

WebmasterWorld Senior Member txbakers us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 22 posted 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

WebmasterWorld Senior Member keyplyr us a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



 
Msg#: 22 posted 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

WebmasterWorld Senior Member txbakers us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 22 posted 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

WebmasterWorld Senior Member keyplyr us a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



 
Msg#: 22 posted 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