$.ajax({ type: "get", url: "http://url/r/proverka.html?r="+u, success: файл есть; error:файла нет; } } ); - jsonp is an unusual ajax, - zb '
|
1 answer
Excerpt from the documentation:
$.ajax({ statusCode: { 404: function() { alert( "page not found" ); } } }); - Still does not work alert does not work ...> GET webandgames.ru/... 404 (Not Found) <html> <head> <script src = " code.jquery.com/jquery-latest.js "></script> <meta charset = "UTF-8"> <title> Document </ title> </ head> <body> <script> $ .ajax ({url: " webandgames.ru/sda.html ", dataType: 'jsonp' , statusCode: {404: function () {alert ("page not found");}}}); </ body> </ html> - Stein_
- everything works - zb '
|