Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $("body").load("/someotherpath/feedsx.pxhp", {limit: 25},
- function (responseText, textStatus, req) {
- if (textStatus == "error") {
- return "oh noes!!!!";
- }
- });
- $.ajaxError(function(event, request, settings) {
- alert("Oops!!");
- });
- $.ajaxSetup({
- timeout: 5000,
- error: function(event, request, settings){
- alert("Oops!");
- }
- });
- $("#feeds").load("feeds.php", {limit: 25},
- function (responseText, textStatus, XMLHttpRequest) {
- // XMLHttpRequest.responseText has the error info you want.
- alert(XMLHttpRequest.responseText);
- });
Add Comment
Please, Sign In to add comment