Re: [Proto-Scripty] JavaScript from AJAX response is not being available

2012-11-13 Thread Ashish Singh
Assigning the variable inside script block as the properties of window solved my problem. Trust me this information is quite hardly found. Took me a whole day. You're the man !!! On Thursday, March 22, 2012 8:19:51 PM UTC+5:45, Brian Marquis wrote: change your script to: script

Re: [Proto-Scripty] JavaScript from AJAX response is not being available

2012-03-22 Thread Walter Lee Davis
On Mar 21, 2012, at 12:11 PM, Aravinda777 wrote: Hi all, I used Prototype to get an AJAX response fromcalling a JSP page, and set it as innerHTML of a div. I tried executing eval on the response separately before going with Prototype, and seeing that prototype evaluates javascript in

RE: [Proto-Scripty] JavaScript from AJAX response is not being available

2012-03-22 Thread Brian Marquis
Also, prototype provides methods for accessing elements and content which are preferred since they are designed to account for browser differences. Specifically, $('test_div').update(reponse.responseText); See the docs on Element.update for more details. Brian Marquis | Quotepro® | Senior