how to use oTable.fnDraw();it always go to the first page
how to use oTable.fnDraw();it always go to the first page
dreams1981
Posts: 5Questions: 0Answers: 0
[code]
function Button2_onclick() {
var iCurrentPage = oTable.fnSettings()._iDisplayStart;
var oSettings = oTable.fnSettings();
oSettings._iDisplayStart = iCurrentPage;
oTable.fnDraw(oSettings);
}
[/code]
I add this code to the example "http://datatables.net/examples/basic_init/scroll_y_theme.html";
When I jump page 3 and click the "Button2",why it jumps to the first page not 3?
function Button2_onclick() {
var iCurrentPage = oTable.fnSettings()._iDisplayStart;
var oSettings = oTable.fnSettings();
oSettings._iDisplayStart = iCurrentPage;
oTable.fnDraw(oSettings);
}
[/code]
I add this code to the example "http://datatables.net/examples/basic_init/scroll_y_theme.html";
When I jump page 3 and click the "Button2",why it jumps to the first page not 3?
This discussion has been closed.
Replies
Allan