title: can I change script src and have javascript run the new code?
body: <p>I have a page that is actually a presentation, much like powerpoint. It is an infinite loop which updates itself with ajax to download new presentation content since last time around.</p>
  
  <p>Now, this following line will be subject to change when user decides to change transitional effects in the slideshow.</p>
  
  <pre><code>&lt;script id='transition' type='text/javascript' src='transitions/script/slide_off_to_right_fade.js'&gt;&lt;/script&gt; 
  </code></pre>
  
  <p>However, even though I replace this entire tag with for example </p>
  
  <pre><code>&lt;script id='transition' type='text/javascript' src='transitions/script/fade_in_out.js'&gt;&lt;/script&gt; 
  </code></pre>
  
  <p>It still does the same thing as was there when the document was initially loaded.</p>
  
  <p>Is there a special function/method to call to achieve this? Many thanks.</p>
  
  <p>Ps. The same problem with an array that keeps track of number of slides and the time to stay on each slide - I update the times in the function and run the function, but it is as if I never changed a thing... more about that in another post...</p>