Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $.ajax({
- async: false,
- type: "POST",
- url: "Default.aspx/DoSomething",
- data: "{" + parms + "}",
- contentType: "application/json; charset=utf-8",
- dataType: "json",
- cache: false,
- success: function(data) { succesfulPost(data); },
- error: function(XMLHttpRequest, textStatus, errorThrown) { errorPost(textStatus, errorThrown); }
- <input type="submit" onclick="doAjaxSubmit();return false;" value="Update" />
Add Comment
Please, Sign In to add comment