Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 82027

Strange fnDraw and form submit issue

$
0
0
I am using DataTables in a DNN site. My page uses pagination and allows user to check a checkbox and enter data (13 textboxes per row). At the end user clicks on Submit, then the code should submit all rows (including the hidden rows).

To achieve this, I have tried the following line on submit. But still it doesnt post all pages.
var sData = oTable.$('input').serialize();

So I have tried another manual solution,

function PrepareForSubmit() {
$("#divTranData").show();
var oSettings = oTable.fnSettings();
oSettings._iDisplayLength = 500;
oTable.fnDraw(true);
return true;
}

Above solution works perfectly fine in my local machine. If I deploy this in Test machine then it throws "Object moved here error". The error is caused due to oTable.fnDraw method. If I comment the oTable.fnDraw then it doesn't throw any error but it doesn't submit elements from hidden pages.

Any help is greatly appreciated as I am banging my head right now!!!!!!!!

Viewing all articles
Browse latest Browse all 82027

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>