I have the following:
$.ajax({
type: "POST",
traditional: true,
url: "/Administration/Locations/DoAction",
data: { partitionKey: id.substring(14),
rowKey: id.substring(4, 14),
action: ac,
datastore: $("#DataSource").val()
},
async: false,
dataType: "json",
timeout: 1000,
success: function (data) {
xx
},
error: function (x, t, m) {
xx
}
Can I can simplify this using jQuery to make the post? Note that id and ac are javascript variables assigned earlier.
Documentation http://api.jquery.com/jQuery.post/
$.post()is same as