For every AJAX call I make, I would like to reload a new java-script
<p>Basically, everytime anybody does anything on this website, I need to retrieve a new javascript from the server (it is a complex math thing, and I am not concerned with speed).</p>

<p>I make the AJAX call, and stick it in the browser in a  tag, like this:</p>

<pre><code>getandplaceajax('id=showtotals','main');   // The first is the URL parameter, and the second is the ID of the &lt;div&gt; tag.
</code></pre>

<p>While I am doing this, I would like to re-write the java-script file, on the server, and then reload it. It is like this, in the  tag.</p>

<pre><code>&lt;script type="text/javascript" src="randomfilename.js"&gt;&lt;/script&gt;
</code></pre>

<p>After this I refresh my object thusly, by retreiving new XML data:</p>

<pre><code>    object1.loadXML("http://mywebsite/mydata.xml",
       function(xml, url) {eventSource.loadXML(xml,url); });
</code></pre>

<p>How do I tell the browser to re-load the java-script file (force a re-load, on demand)?</p>

<p>I tried to interactively  load the java-script into the  portion of the page, but this is an iffy situation given that AJAX is asynchronous and unpredictable in the event chain.</p>

<p>And I am not doing page loads, so referencing the java-script with a unique number parameter (to prevent caching)  isn't an option.</p>

<p>An extra $50 in the church offering plate next Sunday, in your name, for a solution.</p>

<p>Thanks in advance</p>

<p>Jeff</p>
