Advertisement
imjyb1008work

Jquery Ajax CORS

Dec 20th, 2014
2,851
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $.ajax({
  2.     type: "post",
  3.     url: "http://localhost:49786/WebService1.asmx/HelloWorld2",
  4.     success: function (data, textStatus) {
  5.         console.log(data);
  6.         console.log(textStatus)
  7.     },
  8.     error: function (xhr, ajaxOptions, thrownError) {
  9.         console.log("Error");
  10.         console.log(xhr);
  11.         console.log(ajaxOptions);
  12.         console.log(thrownError);
  13.     }
  14. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement