Title: [Rails-spinoffs] [Prototype] understanding evalScripts
Ben -
 
Just make sure you are using evalScripts: true and not evalScript: true (not that there is an 's' at the end).
 
I tried it out and it works for me.
 
Here is a small example:
 
  <@cript>
    page="inside parent";
  </@cript>
</head>
<body>
<div id="placeholder"></div>
<@cript>
 function getHTML()
 {
  var url = '';
  var pars = 'someParameter=ABC';
  var myAjax = new Ajax.Updater(
   'placeholder',
   url,
   {
    method: 'get',
    parameters: pars,
    evalScripts: true
   });
 }
</@cript>
<a href=# >Click Here</a>
<br />
<a href=# >Alert Page</a>
 
server_response.html has
 
<@cript>
page="from ajax"
</@cript>
<div>
Test
</div>
 
Hope this helps!
 
Thank you,
Mandy.
_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

Reply via email to