jQuery AJAX timeout undefined -


I was trying example examples of jQuery and to my surprise, I got an error for AJAX calls Found the state, define T when I removed the timeout attribute, it worked fine. I downloaded jQuery a few days ago, so I'm pretty sure this is not a version issue.

I was trying with Firefox (3.6.8) and not from any other browser.

Why does this happen?

Edit : Code snippet has been taken from the comment to the question

  $ Ajax ({Type: "GET", Data Type: 'Jason', URL: PHPServiceProxy, Timeout: 5000, Success: Function (Answer) {} // Note: The original code snippet provided was missing a comma here Error: Function (xhr, textstatus, errorThrown) {}});  

timeout property is present in jQuery for long time So I do not think your problem relates to that there may be a syntax error in your code. This should work:

  $ Ajax ({type: 'GET', Datatype: 'Jason', URL: PHPServiceProxy, Timeout: 5000, Success: Job (Answer) {}, Error: Function (Excerpt, Textstats, Error Thresone) {}});  

Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -