javascript - JQuery Ajax request to http://pastebin.com/raw.php -
i try make jquery ajax request 'http://pastebin.com/raw.php' , using code:
$.ajax({ url: 'http://pastebin.com/raw.php', data: "i=vj29ufnk", complete: function(jqxhr, textstatus) { alert('complete'); }, success: function(data) { alert(data); }, error: function(xhr, status, error) { alert('noh!') } });
with status '404' within xhr url can see in firebug looks correct:
http://pastebin.com/raw.php?i=vj29ufnk
ideas?
xhr calls protected under same origin policy.
what can do, however, call server side script bypass this.
Comments
Post a Comment