[Proto-Scripty] Re: unable to evaluate javascript in Ajax.Request response

2008-11-07 Thread Alex Mcauley
Hi Jonathon .. You are giving the request the wrong parameter ... You dont need to set a header of text/javascript either evalJS : true, making your script new Ajax.Request('test.php', { evalJS: true, // - notice evalJS not evalScripts onSuccess: function(transport) {

[Proto-Scripty] Re: unable to evaluate javascript in Ajax.Request response

2008-11-07 Thread Jonathon Deason
Alex, I hit submit too early, I removed most of the real code to get it out of the way and accidentally changed it before I was allowed to post again! evalJS was not functioning either. TJ, But! If you do want to use Ajax.Request, you can just use Element.update[6] in your onSuccess handler