MM_reloadPage in external file

P

Pat

The standard Dreamweaver script for repairing the Netscape resizing bug
seems to be a waste of bandwidth. Is there a reason no one moves this
script to an external file ? Wouldn't the following work?

<HEAD> ...
<SCRIPT SRC="netscaperesize.js" TYPE="text/javascript"></SCRIPT>
<SCRIPT language="JavaScript"><!--
MM_reloadPage(true); //--></SCRIPT>
</HEAD>
...

//------- Contents of netscaperesize.js -------------------
function MM_reloadPage(init) { //reloads window if Navigator v4
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(); }
 
D

David Dorward

Pat said:
The standard Dreamweaver script for repairing the Netscape resizing bug
seems to be a waste of bandwidth.

Given the current market share of Netscape 4, and the fact that the script
is there for (as far as I know) purely cosmetic reasons - I'd agree that
its a waste of bandwidth and get rid of it entirely.
 
R

Randy Webb

Pat said:
The standard Dreamweaver script for repairing the Netscape resizing bug
seems to be a waste of bandwidth.

99% of the garbage, oops, "code", spit out by DreamWeaver is a waste of
bandwidth.
Is there a reason no one moves this script to an external file ?

Because most people that use DW's built in crap, oops - scripts, either
don't understand enough or realize it doesn't matter. Whether its
internal or external, the only way to save the bandwidth is to serve it
only to browsers that need it.
Wouldn't the following work?

"work", yes. Do what you think it would, no.
 
T

Thomas 'PointedEars' Lahn

Pat said:
The standard Dreamweaver script [...] seems to be a waste of bandwidth.
Is there a reason no one moves this script to an external file ?

Is there a reason to use Macromedia garbage?


PointedEars
 
R

Randy Webb

Thomas said:
Pat wrote:

The standard Dreamweaver script [...] seems to be a waste of bandwidth.
Is there a reason no one moves this script to an external file ?


Is there a reason to use Macromedia garbage?

Because it produces some garbage that validates better than your website
did the last time I tried to validate it? Or is it the same reason you
use to reply to threads that are a week old which is eternity in terms
of Usenet?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,780
Messages
2,569,609
Members
45,254
Latest member
Top Crypto TwitterChannel

Latest Threads

Top