Welcome.
I use jquery.min library. I'm trying to send an asynchronous jsonp (+ Long Poll) request from one domain to another. But nothing works. The browser hangs. A synchronous request is always sent. And this is despite the fact that in the parameters I set async: true . I send the request as follows:
$.ajax({ type: "GET", dataType: 'jsonp', timeout: 30*1000, cache: false, async: true, contentType: "application/json", crossDomain: true, jsonpCallback: 'test_responce', url: "http://sub.site.ru/test.php", data: "numb="+1234, success: function(data) { alert("Запрос выполнен"); } });
Can JSONP work asynchronously?