tablednd

TableDnD onDrop event not firing

偶尔善良 提交于 2020-01-23 04:42:46
问题 I'm sure this is something very simple, it usually is. $('#sort-table').tableDnD({ onDragClass: "dnd_drag", onDragStart: function(table, row) { console.log("start drag"); }, onDrop: function(table, row) { console.log($.tableDnD.serialize()); }, dragHandle: ".dragHandle" }); I have the above code in action for tableDnD, the jQuery table sorting plugin. This is the exact code from the samples they provide, but it doesn't fire the onDrop event correctly when I drop an item in the table. I get no

How to invoke function in asp.net using javascript?

点点圈 提交于 2019-12-12 03:14:08
问题 I'm using the jquery plugin tablednd $(document).ready(function () { $('#mygridview').tableDnD(); }) to make my rows in my gridview draggable. When I've dragged a row I want to invoke a function in asp.net to save the positions of the rows. But I can't find a proper event on gridview that only reacts on clicking on a row. There is a onDrop method in tableDnd. $(document).ready(function () { $('#mygridview').tableDnD({ onDrop: function(table, row) { }); }) But how could I from there invoke a

TableDnD onDrop event not firing

拜拜、爱过 提交于 2019-12-05 00:33:18
I'm sure this is something very simple, it usually is. $('#sort-table').tableDnD({ onDragClass: "dnd_drag", onDragStart: function(table, row) { console.log("start drag"); }, onDrop: function(table, row) { console.log($.tableDnD.serialize()); }, dragHandle: ".dragHandle" }); I have the above code in action for tableDnD, the jQuery table sorting plugin. This is the exact code from the samples they provide, but it doesn't fire the onDrop event correctly when I drop an item in the table. I get no response in the console. The table does initialize, and the drag handle works properly, so I at least

Uncaught TypeError: Converting circular structure to JSON

…衆ロ難τιáo~ 提交于 2019-11-30 13:12:47
问题 I have a tableDnD drag and drop with JSON.stringify : jQuery(document).ready(function() { jQuery("#Table").tableDnD({ onDragClass: "danger", onDrop: function(table, row) { jQuery.ajax({ url: "ajax.php", type: "post", data: { 'rows' : JSON.stringify(table.tBodies[0].rows) }, dataType: 'html', success: function(reponse) { if(reponse) { //alert('Success'); } else { alert('Erreur'); } } }); } }); }); I have this error message: Uncaught TypeError: Converting circular structure to JSON I have the

Uncaught TypeError: Converting circular structure to JSON

僤鯓⒐⒋嵵緔 提交于 2019-11-30 06:02:21
I have a tableDnD drag and drop with JSON.stringify : jQuery(document).ready(function() { jQuery("#Table").tableDnD({ onDragClass: "danger", onDrop: function(table, row) { jQuery.ajax({ url: "ajax.php", type: "post", data: { 'rows' : JSON.stringify(table.tBodies[0].rows) }, dataType: 'html', success: function(reponse) { if(reponse) { //alert('Success'); } else { alert('Erreur'); } } }); } }); }); I have this error message: Uncaught TypeError: Converting circular structure to JSON I have the problem only on Chrome. You should not convert a DOM element to JSON directly. While - like you already