I am using jtable.org-s library for showing rows in a table. For populating rows I used listAction like this:
actions: {
listAction: '/Passengers/Search'
},
This URL returned valid json and everything worked fine. But I want to call the URL manually from ajax, because this URL returns more info than rows. It also returns info I need for other form elements, such as search result items count, woman/man ratio and etc.
So, I want to ajax call, and load the response to my jtable:
$.ajax({
url: '/Passengers/Search',
type: 'POST',
data: {},
success: function(data) {
// here I would like to inject the Json(data) to my table
}
});