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: html

$.ajax() Call Simplified

$.ajax({ url: 'Service.asmx/Method', type: 'POST', contentType: 'application/json', data: '{"Parameters":"Must be JSON strings!"}', success: function(response) { // Don't forget that the response is wrapped in a // ".d" object in ASP.NET 3.5 and later. console.log(response.d); } });
by jaredmroberts
  June 14, 2011 @ 10:16am
Add a comment

Report Abuse
brought to you by:
West Wind Techologies