Getting Post data from a js function

Getting Post data from a js function

cragusscraguss Posts: 8Questions: 0Answers: 0
edited March 2012 in General
$(document).ready(function() {
/* Initialise the DataTable */
var oTable = $('#table').dataTable( {
"aoColumns": [
null,
null,
null,
null,
null,
null,
{ "fnRender": function ( oObj ) {
var expo_url = oObj.aData[1];
return oObj.aData[6] + ' ' + '';
} }
],
"iDisplayLength": 25,
"oLanguage": {
"sSearch": "Search all columns:"
}

} );

function doSomethingSpecial()
{
var exp_url = '/addform.php?url=' + oObj.aData[1] // I need to add the data from oObj.aData[1] onto this url.
window.location.href = exp_url;
}

As you can see, this appends a button onto the last column, What I am looking to do is when user clicks button it will then go to the doSomethingSpecial() function and go to the necessary URL (which I want to get from the oObj.aData[1])

Can someone help me get the right code so that the correct data is sent to the function
This discussion has been closed.