<HTML><BODY STYLE="font:10pt verdana; border:none;"><DIV><BR></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>&nbsp;Russell Scheinberg</DIV> <DIV style="FONT: 10pt Arial"><B>Sent:</B>&nbsp;Tuesday, May 15, 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;[Javascript] refresh on resize window/reload .js file only</DIV> <DIV><BR></DIV> <P>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></P> <P>******************************************************<BR>Well, your first question has been answered.</P> <P>As about the second one, try this:</P> <P align=center><STRONG><EM>1. Give you're script an ID.</EM></STRONG></P> <P align=right><STRONG>&lt;script id="refreshing" src="refreshable.js"&gt;</STRONG></P> <P align=right><STRONG>&lt;/script&gt;</STRONG></P> <P align=center><STRONG><EM>2. Choose you're event for reloading the script src,- for example I will&nbsp;use&nbsp;the onClick&nbsp;:</EM></STRONG></P> <P><STRONG>someElementID.onclick=scriptRefreshfunction</STRONG></P> <P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <EM>*[someElementID] is the ID of the element that you like to fire the event.<BR></EM>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </P> <P align=center><STRONG><EM>3. Write the function:</EM></STRONG></P> <P><STRONG>function scriptRefreshfunction(){&nbsp;&nbsp;refreshing.src="the_address_of_the_script\\refreshable.js"&nbsp;&nbsp;&nbsp; }</STRONG></P> <P>But in case that this script (<STRONG>efreshable.js)&nbsp;</STRONG>writes the actual Forms&nbsp;of the page. You're form-inputs will be lost I guess, but who knows, -sometimes the forms do not&nbsp;loose focus even if they are refreshened, -there are casses that even the input data remains, but that's a bug!</P> <P>Cheers!</P> <P>_______________________________________________<BR>Javascript mailing list<BR>Javascript@LaTech.edu<BR>http://www.LaTech.edu/mailman/listinfo/javascript<BR></P> <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>