I have a form which uses submitForm() to send it to the server by ajax Call.
<form id="searchform" onsubmit="return submitForm();">
I want the data returned by the this ajax call to populate a jqxGrid.
function submitForm() {
$.ajax({
type:'GET',
url: 'searchresults.php',
dataType: 'json',
data: $('#searchform').serialize(),
success: get_ajax_data
});
return false;
}
function get_ajax_data(data, statusText, xhr) {
}
Just a hint would be enough. I am new to jqxGrid and have seen the demos and prepared my json data accordingly.