Passing variable to server

Passing variable to server

DrakoDrako Posts: 73Questions: 0Answers: 0
edited June 2011 in General
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!

Replies

  • DrakoDrako Posts: 73Questions: 0Answers: 0
    got it!!

    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
This discussion has been closed.