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

281 Views   
/* Google jquery CDN <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js"></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
Tags:
Add a comment


Report Abuse
brought to you by:
West Wind Techologies