anyone knows, how to post data using pjax
or maybe we must using ajax jquery in my _form
anyone knows, how to post data using pjax
or maybe we must using ajax jquery in my _form
Currently, I have only used pjax to update something like a gridview. But it seems like this could work:
var people = [{ first: "John", last: "Doe" }, { first: "Jane", last: "Smith" }];
$('a.sheetlink').click(function(e) {
e.preventDefault();
$.pjax({
type: 'POST',
url: $(this).href,
container: '#content',
data: people,
dataType: 'application/json'
})
});