Could you please follow up? –kaiser♦ Apr 15 '15 at 11:27 oh... Cross-domain requests and dataType: "jsonp" requests do not support synchronous operation. If none is specified, jQuery will try to infer it based on the MIME type of the response (an XML MIME type will yield XML, in 1.4 JSON will yield a Setting this option to false (and thus making the call no longer asynchronous) is strongly discouraged, as it can cause the browser to become unresponsive. http://softacoustik.com/jquery-ajax/jquery-ajax-xml-object-error.php
Linked 1 Better jQuery Ajax error information 44 Can we create custom HTTP Status codes? 17 Eval is evil… So what should I use instead? 19 Get server response with AJAX This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL) Top Experts Last 24hrsThis month OriginalGriff 260 Stefan_Lang 180 Karthik Bangalore Do you need your password? Name spelling on publications Drawing a k-ary tree using TikZ without overlap How to use color ramp with torus Uncertainty principle Would not allowing my vehicle to downshift uphill be fuel
Join them; it only takes a minute: Sign up jquery ajax return error object up vote 0 down vote favorite I need to do an ajax request to a php file Understand that English isn't everyone's first language so be lenient of bad spelling and grammar. This is an Ajax Event. The jqXHR Object The jQuery XMLHttpRequest (jqXHR) object returned by $.ajax() as of jQuery 1.5 is a superset of the browser's native XMLHttpRequest object.
The type of pre-processing depends by default upon the Content-Type of the response, but can be set explicitly using the dataType option. hope this solves your problem. Follow @jQueryFaqs Follow @jQueryFaqs The below code snippet explains how to parse the jQuery AJAX error responseText to JSON object so that its Attributes can be easily read.