title: jQuery .load() call doesn't execute JavaScript in loaded HTML file
body: <p>This seems to be a problem related to Safari only.  I've tried 4 on Mac and 3 on Windows and am still having no luck.</p>
  
  <p>I'm trying to load an external HTML file and have the JavaScript that is embedded execute.</p>
  
  <p>The code I'm trying to use is this:</p>
  
  <pre><code>$("#myBtn").click(function() {
      $("#myDiv").load("trackingCode.html");
  });
  </code></pre>
  
  <p><code>trackingCode.html</code> looks like this (simple now, but will expand once/if I get this working):</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
      &lt;title&gt;Tracking HTML File&lt;/title&gt;
      &lt;script language="javascript" type="text/javascript"&gt;
          alert("outside the jQuery ready");
          $(function() {
              alert("inside the jQuery ready");
          });
      &lt;/script&gt;
  &lt;/head&gt;
  
  &lt;body&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>I'm seeing both alert messages in IE (6 &amp; 7) and Firefox (2 &amp; 3). However, I am not able to see the messages in Safari (the last browser that I need to be concerned with - project requirements - please no flame wars).</p>
  
  <p>Any thoughts on why Safari is ignoring the JavaScript in the <code>trackingCode.html</code> file?</p>
  
  <p>Eventually I'd like to be able to pass JavaScript objects to this <code>trackingCode.html</code> file to be used within the jQuery ready call, but I'd like to make sure this is possible in all browsers before I go down that road.</p>