Closed GoogleCodeExporter closed 9 years ago
I have the same need. I added one line to the code (line 217): sid :
properties.sSID
so the data object passed to the ajax call now reads:
data: { id: ui.item.context.id,
fromPosition: oState.iCurrentPosition,
toPosition: oState.iNewPosition,
direction: oState.sDirection,
group: sGroup,
sid : properties.sSID
},
To use it, I add sSID to the options object when I apply the plug-in
$dt.rowReordering({sURL: 'somecode.php', sSID: 'ABCD4321'});
Original comment by psm...@gmail.com
on 26 Nov 2012 at 9:10
Original comment by joc...@gmail.com
on 27 May 2013 at 9:29
Hi,
See
http://jquery-datatables-row-reordering.googlecode.com/svn/trunk/Issue8.html -
now you can pass function that modifies Ajax request:
"fnUpdateAjaxRequest": function(oAjaxRequest, oProperties, $dataTable){
oAjaxRequest.data.SECURITY_TOKEN=123456789;
}
Jovan
Original comment by joc...@gmail.com
on 6 Jun 2013 at 2:28
This is almost what I'm looking for.
I'm working with Backbonejs and I'd like to update my model first, like this:
this.myDataTable.rowReordering({
url: updateFunction
});
updateFunction: function(data){
//update model with new data
}
Is this possible?
Thanks.
Original comment by maxime.v...@gmail.com
on 10 Jun 2013 at 1:25
Original issue reported on code.google.com by
eng...@gmail.com
on 2 Aug 2012 at 3:59