<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> Russell Scheinberg</DIV> <DIV style="FONT: 10pt Arial"><B>Sent:</B> Tuesday, May 15, 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> [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? 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><script id="refreshing" src="refreshable.js"></STRONG></P> <P align=right><STRONG></script></STRONG></P> <P align=center><STRONG><EM>2. Choose you're event for reloading the script src,- for example I will use the onClick :</EM></STRONG></P> <P><STRONG>someElementID.onclick=scriptRefreshfunction</STRONG></P> <P> <EM>*[someElementID] is the ID of the element that you like to fire the event.<BR></EM> </P> <P align=center><STRONG><EM>3. Write the function:</EM></STRONG></P> <P><STRONG>function scriptRefreshfunction(){ refreshing.src="the_address_of_the_script\\refreshable.js" }</STRONG></P> <P>But in case that this script (<STRONG>efreshable.js) </STRONG>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!</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>