User Profile

Collapse

Profile Sidebar

Collapse
jaylau
jaylau
Last Activity: May 23 '11, 03:16 PM
Joined: May 22 '11
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • jaylau
    replied to Ajax function not defined
    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.
    See more | Go to post

    Leave a comment:


  • jaylau
    started a topic Ajax function not defined

    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;
    ...
    See more | Go to post
    Last edited by Dormilich; May 22 '11, 11:04 AM.
No activity results to display
Show More
Working...