JS alert doesn't fire after php update
<ol>
<li>The alert message 'Test' fires on load correctly. </li>
<li>The tblRoles table is updated correctly after the button is clicked.
HOWEVER </li>
<li>The  alert message 'Update' does not fire after the update/button click.</li>
</ol>

<p>Code: </p>

<pre><code>  &lt;?php 

    //works correctly--On load----------------

    echo '&lt;script type="text/javascript"&gt; 
    alert("Test"); 

    &lt;/script&gt;';

 //works correctly------------------

if (($_GET["Action"])=='edit')
{   
    $result = mysql_query("UPDATE tblRoles SET Role='" .$_GET["strA"] ."',Test='".$_GET["strA"] ."' WHERE ROLEID= " . $_GET["ID"]);   

    //does not work------------------

    echo '&lt;script type="text/javascript"&gt; 

    alert("Update"); 

    &lt;/script&gt;';

}?&gt;

&lt;input class="grid" type="text" id="?php echo($row[1]);?&gt;" 
onblur="UpdateDiv('grid','edit','&lt;?php echo $row[0]?&gt;',document.getElementById('&lt;?php  echo($row[1]);?&gt;').value)",
value="&lt;?php echo($row[1]);?&gt;" size="20"  maxlength="20" /&gt;
</code></pre>
