Using Ajax as a function
Using Ajax as a function

Hi,
I am using the code below to make a ajax call using Datatable:
"ajax": {
"url":"ajax-groupView.html",
"data": function(d) {
var searchCriteria = {};
searchCriteria.groupId = group_Id[1];
d.searchCriteria = searchCriteria;
return JSON.stringify(d);
},
"type":"POST",
}
If i want to make the same by using ajax as a function call, how would my above snippet look like?
Could you give me the snippet of how i can use the above using Ajax as a function?
Thanks!
This discussion has been closed.