Tell me more ×  I want to inject the myscript.php code into my
handler page. Here are the source:   var myArr = Array();
function myfunc(){  // some code  function handleArray(arr){
// some code   $("container").observe('click', function(evt){
new Ajax.Request('myscript.php', {          evalScripts: 'true',
onFailure: function(e){          onSuccess: function(t){
<script type="text/javascript"> var myArr = Array("hello",
"world"); <div id="abc">some html code</html>  Basically I have
my functions defined in my handler page, and myscript.php holds
the necessary data for handler page to handle. While the above
does make an Ajax request to myscript.php, the returned code
does not get evaluated. It shows as Object Object instead of
treating it as html. I ported the same code to jQuery and set
datatype:"Script", everything works fine. While switching to
jQuery is not an option to me since the entire code base is
built on top of prototype, I would love to know how I can have
prototype to treat t