I am having some issues getting the response Text of an AJAX request to evaluate the scripts within the HTML response. I am using the Prototype function 'evalScripts()' but it doesn't want to work correctly for some reason. Please see the simple example below 'Main.jsp' which dynamically loads another file 'ajaxtest.jsp' into the innerHTML of a DHTML div tag.
Main.JSP
ajaxtest.jsp:
Please Help!
The above gives the error back 'myVariable' is undefined (when clicking the '
TEST' button)
Even though clearly the javascript in ajaxtest.jsp is defining it!
[ April 30, 2007: Message edited by: Scott McGhee ]