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

Popular posts from this blog

java - Jmockit String final length method mocking Issue -

asp.net - Razor Page Hosted on IIS 6 Fails Every Morning -

c++ - wxwidget compiling on windows command prompt -