krot

jsonp

Oct 5th, 2017
79
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $.jsonp({
  2.     type: 'GET',
  3.     url: 'http://yandex.ru/404',
  4.     callbackParameter: 'callback',
  5.     dataType: 'jsonp',
  6.     timeout: 10000,
  7.     success: function(json){
  8.         alert('success')
  9.     },
  10.     error: function(){
  11.         alert('error')
  12.     }
  13. });
RAW Paste Data