Passing variable to server
Passing variable to server
im having a problem passing variables to the server, its showing on firebug on the last line
undefined : my_value
[code]
"fnServerData": function ( sSource, aoData, fnCallback ) {
/* Add some extra data to the sender */
aoData.push( { "test": "test", "value": "my_value" } );
$.getJSON( sSource, aoData, function (json) {
/* Do whatever additional processing you want on the callback, then tell DataTables */
fnCallback(json)
} );
[/code]
what is wrong with this code?
thanks!
undefined : my_value
[code]
"fnServerData": function ( sSource, aoData, fnCallback ) {
/* Add some extra data to the sender */
aoData.push( { "test": "test", "value": "my_value" } );
$.getJSON( sSource, aoData, function (json) {
/* Do whatever additional processing you want on the callback, then tell DataTables */
fnCallback(json)
} );
[/code]
what is wrong with this code?
thanks!
This discussion has been closed.
Replies
i was thinking that the parameters were variable:value but its "name": variable , "value" : value!
funny how you can search for hours and find nothing just to post something and few minutes later find the answer.. ehehe