title: Setting an image source via Javascript unreliable in Internet Explorer
body: <p>I am simply trying to change the <code>SRC</code> attribute of an image via javascript like so:</p>
  
  <pre><code>document.getElementById('fooImage').src = img;
  </code></pre>
  
  <p>Where <code>img</code> is a variable that has a link to the file.</p>
  
  <p>In all other browsers (Chrome, Firefox, Safari) this works.  In IE (7+) this also works too <strong><em>sometimes</em></strong>.</p>
  
  <p>Using IE's built-in developer tools, I can see that the image's <code>SRC</code> tag is set.  Is there something else in the locals window that could help me debug why the image doesn't actually show on screen?</p>
  
  <p>I've also tried using jQuery to do this and same outcome:</p>
  
  <pre><code>$("#fooImage").attr("src", img);
  </code></pre>
  
  <p>An ideas?</p>