CodePaste Logo
New Snippet New Recent Snippets Recent Snippets My Snippets My Snippets My Favorites Favorites Web Code Search Snippets Search
Sign inor Register
Language: javascript

jquery ajax call to a rest service

/* Google jquery CDN <script type="text/javascript" src=""></script> */ $.ajax( { type: "POST", contentType: "application/json; charset=utf-8", url: "services/FeedService.svc/ServiceMethod", data: '{"param1":"data1" , "param2":"data2"}', dataType: "json", success: function (data) {SuccessCallback(data); }, error: ErrorCallback });
by frank2tek
  October 04, 2011 @ 11:25am
Add a comment

Report Abuse
brought to you by:
West Wind Techologies