When using Ajax.Updater with the option evalScripts:true like:
new Ajax.Updater( table_id+'tbody', '/someurl', {
parameters : { 'table_id':table_id },
evalScripts : true
});
and response of /someurl contains the following script:
<script language="JavaScript" type="text/javascript">
<!--
alert( 'Hello' );
// -->
</script>
IE7 throws an error "Syntax error" in line 212 of prototype.js version 1.5.0 in function evalScripts.
If you try a non-commented script like:
<script language="JavaScript" type="text/javascript">
alert( 'Hello' );
</script>
it works.
Firefox works whether the script is commented or not. I had no chance to test it in IE6.