<HTML><BODY STYLE="font:10pt verdana; border:none;"><DIV> </DIV> <DIV>Please cut and paste the folowing:</DIV> <DIV> </DIV> <DIV><STRONG><SCRIPT ID="Loader" SRC="HM_Loader.js"></SCRIPT><BR></STRONG></DIV> <DIV><STRONG><SCRIPT><BR> document.body.onresize = loaderRefresh</STRONG></DIV> <DIV><STRONG></STRONG> </DIV> <DIV><STRONG>function loaderRefresh(){<BR> Loader.src = "HM_Loader.js"<BR> }</STRONG></DIV> <DIV><STRONG></SCRIPT><BR></STRONG></DIV> <DIV>Tip! Avoid using brankets when callin the function from within the script tag OK</DIV> <DIV>Regards</DIV> <DIV> </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. </EM></DIV> <DIV><EM> 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> </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> Russell Scheinberg</DIV> <DIV style="FONT: 10pt Arial"><B>Sent:</B> Thursday, May 17, 2001 10:16 PM</DIV> <DIV style="FONT: 10pt Arial"><B>To:</B> javascript@LaTech.edu</DIV> <DIV style="FONT: 10pt Arial"><B>Subject:</B> 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><SCRIPT ID="Loader" LANGUAGE="JavaScript1.2" SRC="HM_Loader.js" TYPE='text/javascript'></SCRIPT><BR><SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript"><BR><!--<BR>document.body.onresize = loaderRefresh()<BR><BR>function loaderRefresh(){<BR> Loader.src = "HM_Loader.js"<BR>}<BR><BR>//--><BR></SCRIPT><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>>>> Trojani2000@hotmail.com 05/16/01 10:22PM >>><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? 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><script id="refreshing" src="refreshable.js"><BR></script><BR>2. Choose you're event for reloading the script src,- for example I will use the onClick :<BR>someElementID.onclick=scriptRefreshfunction<BR> *[someElementID] is the ID of the element that you like to fire the event.<BR> <BR>3. Write the function:<BR>function scriptRefreshfunction(){ refreshing.src="the_address_of_the_script\\refreshable.js" }<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<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><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>