Return to same page when click browser backbutton
Return to same page when click browser backbutton
HansS
Posts: 3Questions: 0Answers: 0
Hello,
I'm new to DataTables and it's a great product, but i'm having a problem with the paging.
I've a http link in my second column and when i click on it when i'm on a page > 1 i go to the page in the link, but when i go back it is redrawing the table and i'm back on page 1.
I don't want to use "bStateSave": true, can anyone help me with a sample ?
Thanks Hans
[code] $(document).ready(function () {
var myTable = $('#Test').dataTable({
"oLanguage": { "sSearch": "Extra filter : ", "sInfoThousands": ".", "sInfo": "_TOTAL_ records found (_START_ t/m _END_)"
, "sLengthMenu": "Paginagrootte : _MENU_", "oPaginate": { "sFirst": "Eerste", "sLast": "Laatste", "sNext": "Volgende", "sPrevious": "Vorige" } },
"iDisplayLength": 10,
"aLengthMenu": [[10, 25, 50, 100, -1], [10, 25, 50, 100, "All"]],
"bJQueryUI": true, "sPaginationType": "full_numbers", "aaSorting": [[0, "asc"]]
, "sDom": '<"H"<"layout_centre_top"<"centered_top"f> > T<"clear">t <"F" <"float_Left"p> <"float_Right"l> <"layout_centre_bottom"<"centered_bottom"i> >'
}); [/code]
I'm new to DataTables and it's a great product, but i'm having a problem with the paging.
I've a http link in my second column and when i click on it when i'm on a page > 1 i go to the page in the link, but when i go back it is redrawing the table and i'm back on page 1.
I don't want to use "bStateSave": true, can anyone help me with a sample ?
Thanks Hans
[code] $(document).ready(function () {
var myTable = $('#Test').dataTable({
"oLanguage": { "sSearch": "Extra filter : ", "sInfoThousands": ".", "sInfo": "_TOTAL_ records found (_START_ t/m _END_)"
, "sLengthMenu": "Paginagrootte : _MENU_", "oPaginate": { "sFirst": "Eerste", "sLast": "Laatste", "sNext": "Volgende", "sPrevious": "Vorige" } },
"iDisplayLength": 10,
"aLengthMenu": [[10, 25, 50, 100, -1], [10, 25, 50, 100, "All"]],
"bJQueryUI": true, "sPaginationType": "full_numbers", "aaSorting": [[0, "asc"]]
, "sDom": '<"H"<"layout_centre_top"<"centered_top"f> > T<"clear">t <"F" <"float_Left"p> <"float_Right"l> <"layout_centre_bottom"<"centered_bottom"i> >'
}); [/code]
This discussion has been closed.
Replies
How do i return to the same page
Thanks Hans