ok thx I modified according to your remarks but it was still not working.
I solved the problem, actually I put both javascript scripts in the first jsp page (before I had the first jsp calling a second one, both had ajax code (two separated functions)). I am not sure it is possible to put some javascript functions in some code returned by the XMLhttpRequest objet... i have to hunt on this.
User Profile
Collapse
-
Ajax function not defined
Hello! I have an Ajax script wich works well on a page, but when I use it in another page I got the error "function not defined"
this one works well :
...Code:<script type="text/javascript"> function details(var1, var2) { var html; xmlhttp = new XMLHttpRequest(); xmlhttp.onreadystatechange=function() { h = document.getElementById("log").innerHTML;Last edited by Dormilich; May 22 '11, 11:04 AM.
No activity results to display
Show More
Leave a comment: