jQuery Ajax: Make Ajax Post Using jQuery

12/19/2012 12:14:28 AM

Use jQuery to make an ajax post.

//ajax
$.ajax({
	type: "POST",
	url: "/object/update/",
	data: ({ postData1: postData1Value }),
	cache: false,
	success: function (data)
	{                       
		if (data.Success) //requires Success to be part of the returned object
		{
			                     
		}
	},
	complete: function ()
	{
	},
	error: function (data)
	{
	}
});