Get a value from datatables data and post it to a php page

Get a value from datatables data and post it to a php page

TsigosjohnTsigosjohn Posts: 2Questions: 1Answers: 0

HI guys.
I am newbie with Datatables (which is a great FW) and have a little problem:
I am getting the value of the first cell using:

$(document).ready(function() {
  oTable = $('#lili').dataTable();
 
  oTable.$('td').click( function () {
    var aPos = oTable.fnGetPosition(this);
    var aData = oTable.fnGetData(aPos[0]);
    var tsiou = aData[0];
    
    alert( 'The cell clicked on had the value of '+tsiou );
  } );
} );

When i click on a Datatable row, i'm getting the right value in alert message.
Now, I would like to pass it as a variable in to my test.php page, and display the selected value, either using $_POST or $_Request
Could you help me on that?

Thank you in advanced
JT

Answers

This discussion has been closed.