Guest User

Untitled

a guest
Jun 23rd, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. $("body").load("/someotherpath/feedsx.pxhp", {limit: 25},
  2. function (responseText, textStatus, req) {
  3. if (textStatus == "error") {
  4. return "oh noes!!!!";
  5. }
  6. });
  7.  
  8. $.ajaxError(function(event, request, settings) {
  9. alert("Oops!!");
  10. });
  11.  
  12. $.ajaxSetup({
  13. timeout: 5000,
  14. error: function(event, request, settings){
  15. alert("Oops!");
  16. }
  17. });
  18.  
  19. $("#feeds").load("feeds.php", {limit: 25},
  20. function (responseText, textStatus, XMLHttpRequest) {
  21. // XMLHttpRequest.responseText has the error info you want.
  22. alert(XMLHttpRequest.responseText);
  23. });
Add Comment
Please, Sign In to add comment