the requested page returns the following javascript by jsp:
<%!
String test = "hello world!!";
String test3 = "<script type=\"text/javascript\">document.getElementById(\"content\").setAttribute(\"style\",\"color:red\");</script>";
out.println(test3);
%>
and in the ajax page, i extracted the expression btw and uses
eval((e)())
in which e is the javascript returned, and the HTML is like:
<div id="content">
<p>hello world!</p></div>
but apparently the javascript returned does not work, is something wrong with the code? thanks by the way, i'm not allowed to use jQuery...