Just a little background on how a load error happens…
$("body").load("/someotherpath/feedsx.pxhp", {limit: 25},
function (responseText, textStatus, req) {
if (textStatus == "error") {
return "oh noes!!!!";
}
});
Edit: Added a path other than the root path as requested by comments.
Related Contents:
- How do I catch an Ajax query post error?
- Jquery Ajax error handling to ignore aborted
- jQuery ajax (jsonp) ignores a timeout and doesn’t fire the error event
- Fade in each element – one after another
- Jquery – How to make $.post() use contentType=application/json?
- TypeError: $.ajax(…) is not a function?
- What’s the point of the X-Requested-With header?
- Jquery Ajax Posting JSON to webservice
- GUI-based or Web-based JSON editor that works like property explorer [closed]
- How to get a cross-origin resource sharing (CORS) post request working
- jQuery posting valid json in request body
- How can I convince IE to simply display application/json rather than offer to download it?
- jQuery ajax error function
- jQuery – Illegal invocation
- what is the difference between ajax and jquery and which one is better? [closed]
- Ajax tutorial for post and get [closed]
- Ajax using https on an http page
- Detecting a redirect in ajax request?
- JQuery Ajax is sending GET instead of POST
- jsonp with jquery [closed]
- Jquery and HTML FormData returns “Uncaught TypeError: Illegal invocation”
- How can I use JQuery to post JSON data?
- jQuery read AJAX stream incrementally?
- “How” to save an entire collection in Backbone.js – Backbone.sync or jQuery.ajax?
- How to know when all ajax calls are complete
- jQuery – Getting form values for ajax POST
- Ajax replace instead of append
- How to Set Selected value in Multi-Value Select in Jquery-Select2.?
- json Uncaught SyntaxError: Unexpected token :
- What does autocomplete request/server response look like?
- What happened to Dojo in 2008?
- Call to jquery ajax – .fail vs. :error
- Use success() or complete() in AJAX call
- How to pass data in the ajax DELETE request other than headers
- Getting 400 bad request error in Jquery Ajax POST
- jQuery AJAX Character Encoding
- Queue ajax requests using jQuery.queue()
- jQuery validator and a custom rule that uses AJAX
- How do I debug Javascript which was loaded via AJAX (specifically jQuery)
- jQuery.ajax() method’s async option deprecated, what now?
- How to return data from PHP to a jQuery ajax call
- how to send multiple data with $.ajax() jquery
- How do I POST an array of objects with $.ajax (jQuery or Zepto)
- jquery callback after all images in dom are loaded?
- How do I PUT data to Rails using JQuery
- Stop $.ajax on beforeSend
- Can I load external stylesheets on request?
- Retrieving HTTP status code from loaded iframe with Javascript
- Set Headers with jQuery.ajax and JSONP?
- jQuery – .getjson VS .ajax json [duplicate]