PHP JSON and <script> tag
<p>I am using PHP to send a json string to jQuery ajax. I am simply using $("#id").html(data.result) to display the html from the fetched page. Now on the fetched page I am looping through MySQL results. I need to run a piece of javascript on each result so I can start a countdown timer for each result.</p>

<p>My problem is that the calling page simply displays the actual javascript script as a string.</p>

<pre><code>$row_array['result'] .= '&lt;script&gt;trigger script&lt;/script&gt;'
</code></pre>

<p>Any suggestions?</p>

<p>Thanks</p>
