Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script type="text/javascript">
- function StackOverflow_8537634_Test() {
- var url = "/StackOverflow_8537634.svc/SaveUserData";
- $.ajax({
- type: "POST",
- contentType: "application/json; charset=utf-8",
- url: url,
- data: '{"userInfo":{"EmailID":"praveen", "LevelID": 1}}',
- dataType: "json",
- processData: false,
- success: function (data, textStatus, jqXHR) {
- $("#result").text(data);
- },
- error: function (jqXHR, textStatus, errorThrown) {
- $("#result").text("error");
- }
- });
- }
- </script>
- <input type="button" value="Click Me" onclick="StackOverflow_8537634_Test();" />
- <div id='result'></div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement