SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Sep 2006
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Infinite Ajax Requests

    When I click on my link the ajax requests continues looping.

    My Main Ajax script:
    http://sial.org/pbot/19776

    My Errors:
    Code:
    Error: [Exception... "Component returned failure code: 0x80040111 (NS_ERROR_NOT_AVAILABLE) [nsIXMLHttpRequest.status]"  nsresult: "0x80040111 (NS_ERROR_NOT_AVAILABLE)"  location: "JS frame :: http://lnx585:777/js/main.js :: anonymous :: line 94"  data: no]
    Line: 94

    My JavaScript page:
    Code:
    var ajax = new Ajax();
    var showDiv = document.getElementById('showstuff');
    
    	var getInfo = function(str)
    	{
    showDiv = document.getElementById('showstuff').innerHTML = str;
    	ajax.doGet('/test.php',getInfo);
    	}
    My html page :
    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
       "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
     <head>
       <meta http-equiv="Content-Type"
           content="text/html; charset=iso-8859-1" />
       <title>A Simple AJAX Test</title>
       <script type="text/javascript" src="js/main.js"></script>
       <script type="text/javascript" src="js/list.js"></script>
     </head>
     <body>
    <h1><a href="#" onclick="getInfo();">Get list</a></h1>
    <div id="showstuff">
    </div>
     </body>
    </html>
    Last edited by simply seth; Sep 18, 2006 at 12:03. Reason: link is wrong

  2. #2
    SitePoint Member
    Join Date
    Sep 2006
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    hmmm I guess .. I'll have to wait until I get a JavaScript book to figure this out


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •