I try to run the following jquery code in local Network.
$.ajax({
type: "GET",
url: "http://SomeSite/MyUrl/",
cache: false,
data: { ... },
dataType: "json",
error: function (xhr, status, error) {
...
},
success: function (json) {
...
});
Everything works fine until "SomeSite" is localhost. I mean the same server from what the page was downloaded.
But when 'SomeSite' is another (not localhost) network site it looks like request hangs. Not "error", nor "success" callback functions are called. How can I make this code work?
Thank you in advance!