<HTML><BODY STYLE="font:10pt verdana; border:none;"><DIV>&nbsp;</DIV> <DIV>Please cut and paste the folowing:</DIV> <DIV>&nbsp;</DIV> <DIV><STRONG>&lt;SCRIPT ID="Loader" SRC="HM_Loader.js"&gt;&lt;/SCRIPT&gt;<BR></STRONG></DIV> <DIV><STRONG>&lt;SCRIPT&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; document.body.onresize = loaderRefresh</STRONG></DIV> <DIV><STRONG></STRONG>&nbsp;</DIV> <DIV><STRONG>function loaderRefresh(){<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; Loader.src = "HM_Loader.js"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</STRONG></DIV> <DIV><STRONG>&lt;/SCRIPT&gt;<BR></STRONG></DIV> <DIV>Tip! Avoid using brankets when callin the function from within the script tag OK</DIV> <DIV>Regards</DIV> <DIV>&nbsp;</DIV> <DIV>PS. <EM>Oh my GOD, dont forget to add some conditions tho the script for it will blow the server in case that the window is resized by mouse draging.&nbsp; </EM></DIV> <DIV><EM>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Imagine houndred clients draging to resize the window. It calls the function for every pixel of move. For 200px it will call the loader 200 times.</EM></DIV> <DIV><BR>&nbsp;</DIV> <BLOCKQUOTE style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px"> <DIV style="FONT: 10pt Arial">----- Original Message -----</DIV> <DIV style="BACKGROUND: #e4e4e4; FONT: 10pt Arial; FONT-COLOR: black"><B>From:</B>&nbsp;Russell Scheinberg</DIV> <DIV style="FONT: 10pt Arial"><B>Sent:</B>&nbsp;Thursday, May 17, 2001 10:16 PM</DIV> <DIV style="FONT: 10pt Arial"><B>To:</B>&nbsp;javascript@LaTech.edu</DIV> <DIV style="FONT: 10pt Arial"><B>Subject:</B>&nbsp;Re: [Javascript] refresh on resize window/reload .js file only</DIV> <DIV><BR></DIV>The script does not create the form information. That is all ASP. <BR><BR>I tried this and I get "Error:Not implemented" referring to [document.body.onresize=loaderRefresh()]. If I click through the error, then I get the page OK with the menus placed correctly. But then nothing happens when I resize the window. That is the window resizes but the menus maintain their original position.<BR><BR><BR>Tell me please what I might be doing wrong.<BR><BR>Here is the code:<BR><BR>&lt;SCRIPT ID="Loader" LANGUAGE="JavaScript1.2" SRC="HM_Loader.js" TYPE='text/javascript'&gt;&lt;/SCRIPT&gt;<BR>&lt;SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript"&gt;<BR>&lt;!--<BR>document.body.onresize = loaderRefresh()<BR><BR>function loaderRefresh(){<BR>&nbsp;&nbsp; Loader.src = "HM_Loader.js"<BR>}<BR><BR>//--&gt;<BR>&lt;/SCRIPT&gt;<BR><BR>If I do it this way I get the error. If I place a onResize="loaderRefresh()" in the body tag instead, the script does not reload when the window is resized. However, onResize="location.reload()" works fine, but it reloads all the data in the forms as well, which I don't want. I have to think that the function is not set up right.<BR><BR>Thanks.<BR><BR>&gt;&gt;&gt; Trojani2000@hotmail.com 05/16/01 10:22PM &gt;&gt;&gt;<BR><BR><BR><BR><BR>----- Original Message -----<BR>From: Russell Scheinberg<BR>Sent: Tuesday, May 15, 2001 10:16 PM<BR>To: javascript@LaTech.edu <BR>Subject: [Javascript] refresh on resize window/reload .js file only<BR><BR><BR>I would like to create a function that will cause the window to refresh whenever the window is resized. Anyone know how to do this or can point me to a site that has this explained?&nbsp; Also, is there a way to reload a javascript source file without reloading the rest of the data that might be loaded on the page from the server or that has been input into form elements? Thanks.<BR><BR>******************************************************<BR>Well, your first question has been answered.<BR>As about the second one, try this:<BR>1. Give you're script an ID.<BR>&lt;script id="refreshing" src="refreshable.js"&gt;<BR>&lt;/script&gt;<BR>2. Choose you're event for reloading the script src,- for example I will use the onClick :<BR>someElementID.onclick=scriptRefreshfunction<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; *[someElementID] is the ID of the element that you like to fire the event.<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>3. Write the function:<BR>function scriptRefreshfunction(){&nbsp; refreshing.src="the_address_of_the_script\\refreshable.js"&nbsp;&nbsp;&nbsp; }<BR>But in case that this script (efreshable.js) writes the actual Forms of the page. You're form-inputs will be lost I guess, but who knows, -sometimes the forms do not loose focus even if they are refreshened, -there are casses that even the input data remains, but that's a bug!<BR>Cheers!<BR>_______________________________________________<BR>Javascript mailing list<BR>Javascript@LaTech.edu <BR>http://www.LaTech.edu/mailman/listinfo/javascript&lt;br clear=all&gt;&lt;hr&gt;Get Your Private, Free E-mail from MSN Hotmail at &lt;a href="http://www.hotmail.com"&gt;http://www.hotmail.com&lt;/a&gt;.&lt;br&gt;&lt;/p&gt;<BR><BR><BR>_______________________________________________<BR>Javascript mailing list<BR>Javascript@LaTech.edu<BR>http://www.LaTech.edu/mailman/listinfo/javascript<BR> <DIV></DIV></BLOCKQUOTE></BODY></HTML><DIV><BR><br clear=all><hr>Get Your Private, Free E-mail from MSN Hotmail at <a href="http://www.hotmail.com">http://www.hotmail.com</a>.<br></p></DIV>