Jump to content

Random failur of ajax calls.


this.user

Recommended Posts

I have a site, where people can go and create chat sessions, which they can use and return to at anytime. however when you are in a chat session, the ajax call (which occures every second) fails and ends the session at random. I have spent a lot of time trying to figure out what is going on with no luck.

 

firebug points to line 5252 in the jquery script here is ascreen shot: http://i.imgur.com/AK4pv.png

 

Here is what is at that line:

 

   // Send the data
    try {
        xhr.send( type === "POST" || type === "PUT" || type === "DELETE" ? s.data : null );
    } catch(e) {
        jQuery.handleError(s, xhr, null, e);
        // Fire the complete handlers
        complete();
    }

    // firefox 1.5 doesn't fire statechange for sync requests
    if ( !s.async ) {
        onreadystatechange();
    }

 

the js code I am using is at http://www.keychat.com/include/js/index.js I would really appreciate any help.

 

If there is something wrong with my code, it there is a more efficient way of doing something than what I have, please let me know. I welcome any advice, suggestion, and help.

 

its happening in FF, IE, and Chrome.

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.