dynamic loading of html via php javascript not executing
<p>i have a simple setup, with php pulling html content from a database.  if i go to my template page, it loads the data and returns it to the browser via a simple php echo ... not rocket science.  </p>

<p>now, i've written an html file using jquery and an ajax call.  i load the html file in my browser and the javascript / ajax query works.  </p>

<p>when i load the html into the database and print it out via the php / echo, the content is the exact same when i view the source, but the ajax query doesn't execute.  </p>

<pre><code>&lt;html&gt;
&lt;head&gt;
  &lt;title&gt;random query - api - get&lt;/title&gt;
  &lt;script src="http://code.jquery.com/jquery-1.5.min.js"&gt;&lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;pre&gt;
executing the GET method
&lt;script language="javascript" type="text/javascript"&gt;

$.ajax({
   type: "GET",
   url: "http://some-rand.om.api.com",
   data: "011b38b8-011f-4b03-bb21-4c5bb26600b3",
   success: function(msg){
     alert( msg );
   }
 });

&lt;/script&gt;
&lt;/pre&gt;
&lt;/body&gt;
&lt;/html&gt;
</code></pre>

<p>Any comments / suggestions would be great.  What I find bizarre, is i have no problem copying the source of <a href="http://jquery.com/" rel="nofollow">http://jquery.com/</a> and pasting it into the db and doing the php / echo.  this works fine.  maybe an onLoad() would help...hm.</p>
