Use aoData objects to construct data to be send to the server.
Use aoData objects to construct data to be send to the server.
Hi,
I want to send some selected data from aoData object to the server with different names,here is how I have tired that.
[code]
$.prepareDataToSend = function(aoData){
var jsonData = {
offset:aoData[3].value,
limit:aoData[4].value
};
return jsonData;
}
[/code]
I don't want to send the whole aoData object to the server,and the server accepts different parameter names,Is there a better way to achieve this?.
And I also wanted to know whether the order of the inner objects of the aoData array is fixed,otherwise my implementation might fail at some instances.
Any help will be greatly appreciated.
I want to send some selected data from aoData object to the server with different names,here is how I have tired that.
[code]
$.prepareDataToSend = function(aoData){
var jsonData = {
offset:aoData[3].value,
limit:aoData[4].value
};
return jsonData;
}
[/code]
I don't want to send the whole aoData object to the server,and the server accepts different parameter names,Is there a better way to achieve this?.
And I also wanted to know whether the order of the inner objects of the aoData array is fixed,otherwise my implementation might fail at some instances.
Any help will be greatly appreciated.
This discussion has been closed.