Jeditable + Symfony: retrieves cached results

Jeditable + Symfony: retrieves cached results

EdgeEdge Posts: 11Questions: 0Answers: 0
edited August 2011 in General
I am having the cache problem, and couldn't get it fixed by making $.ajax cache to false. I am using DataTables with Symfony 1.4 and JEditable.
I need you guys to please help me out in this regard!

Please check out this code:

[code]

$('#example tbody td').click( function () {


/* Get the position of the current data from the node */
var aPos = oTable.fnGetPosition( this );

/* Get the data array for this row */
var aData = oTable.fnGetData( aPos[0] );
var d = new Date();
var data_id = aData[0]*d.getMilliseconds();

//oCache.lastJson.aData[aPos[0][aPos[1]] = sValue;
//oTable.fnUpdate( sValue, aPos[0], aPos[1] );

//alert("aData:"+data_id);

// data_id is a unique ID which must be sent and which is coming from cache
$('td.cSelect').editable('<?php echo url_for('symfony_module/get_data?rid=') ?>'+data_id, {

data : '<?php print json_encode($array); ?>',
id : data_id,
type : 'select',
submit : 'OK'



});
/* Update the data array and return the value */
aData[ aPos[1] ] = 'clicked';
this.innerHTML = 'Select';
} );

[/code]
This discussion has been closed.