Skip to content

Instantly share code, notes, and snippets.

@vbilopav
Last active September 4, 2015 10:18
Show Gist options
  • Select an option

  • Save vbilopav/abb6c615aadcb596e262 to your computer and use it in GitHub Desktop.

Select an option

Save vbilopav/abb6c615aadcb596e262 to your computer and use it in GitHub Desktop.
$.ajax({
url: "http://localhost:53920/MyServiceSample.svc/jsonp/DoSomeWork?request=" +
JSON.stringify({ Param1: 1, Param2: "bla"}) +
"&callback=?",
contentType: "application/json",
dataType: "json",
type: "GET",
success: function(data) {
if (data.success) {
// do some stuff...
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment