title: append script doesn't work in IE
body: <p>I am using this script to dynamically add scripts that loads graph in my <a href="http://www.s-maof.com/shorts/shorts_table.php" rel="nofollow">page</a>.
  This code works fine in chrome, Safari and FF but not in IE(!!)..</p>
  
  <pre><code>$.post("shorts.server.php", $.param({
  
      S_number: stocknumber,
  
  }), function(response) {
  
      script = document.createElement('script');
      //dynamic_graph.js changes it's content by the current selected stock
      script.src = 'jQuery/head/dynamic_graph.js';
      $("#graphMain" + id).append(script);
  
      var head = document.getElementsByTagName('body')[0];
      script = document.createElement('script');
  
      script.src = 'jQuery/head/dynamic_info.js';
  
      head.appendChild(script);
  });​
  </code></pre>
  
  <ol>
  <li>you can see that I tried both techniques to append the scripts dynamically.</li>
  <li>they both don't work in IE. can you suggest a better way to append the scripts?
  1 more less important but related question:
  <ol>
  <li>what is the currect way to post a script in stackoverflow??, because sometimes it's colored and sometimes it's grayed...</li>
  </ol></li>
  </ol>