dataTables and TableDnD
dataTables and TableDnD
Hi there,
I'm new to jQuery, and mostly used only ready made JS in my site...
Now I need the combination of dataTable and the plugin tableDnD.
tableDnD can be found here: http://www.isocra.com/2008/02/table-drag-and-drop-jquery-plugin/
The table is initialized using the JS-array.
The table shows.
tableDnD is also activated and I'm able to drag/drop the rows.
Now I need the changed table (changed with tableDnD) back in my backed to save the data to database.
I'm using Perl as Backend in combination with template toolkit.
Init:
[code]
$(document).ready(function() {
oTable = $('#groups_edit').dataTable( {
"bPaginate": false,
"bLengthChange": false,
"bStateSave": true,
"bInfo": true,
"bAutoWidth": true,
"aaData": aaData,
"fnDrawCallback": function ( oSettings ) {
/* Need to redo the counters if filtered or sorted */
if ( oSettings.bSorted || oSettings.bFiltered )
{
for ( var i=0, iLen=oSettings.aiDisplay.length ; i
I'm new to jQuery, and mostly used only ready made JS in my site...
Now I need the combination of dataTable and the plugin tableDnD.
tableDnD can be found here: http://www.isocra.com/2008/02/table-drag-and-drop-jquery-plugin/
The table is initialized using the JS-array.
The table shows.
tableDnD is also activated and I'm able to drag/drop the rows.
Now I need the changed table (changed with tableDnD) back in my backed to save the data to database.
I'm using Perl as Backend in combination with template toolkit.
Init:
[code]
$(document).ready(function() {
oTable = $('#groups_edit').dataTable( {
"bPaginate": false,
"bLengthChange": false,
"bStateSave": true,
"bInfo": true,
"bAutoWidth": true,
"aaData": aaData,
"fnDrawCallback": function ( oSettings ) {
/* Need to redo the counters if filtered or sorted */
if ( oSettings.bSorted || oSettings.bFiltered )
{
for ( var i=0, iLen=oSettings.aiDisplay.length ; i
This discussion has been closed.