The paging option is not working properly?????

The paging option is not working properly?????

rajaaarajaaa Posts: 21Questions: 10Answers: 2
edited August 2015 in Free community support

Getting an error as:

DataTables warning: table id=register - Unknown paging action: 6. For more information about this error, please see http://datatables.net/tn/5

Debugger link of the datatable: http://debug.datatables.net/ulacib

var page_no = $('#tableInfo').text();
var temp_page = parseInt(page_no)-1;
$.post("register_tab.php",function(data){

        $('#register_tab').html(data);

        $.fn.dataTable.ext.errMode = 'none';
        $('#register').on('error.dt', function(e, settings, techNote, message) {
            console.log( 'An error has been reported by DataTables: ', message );
        });
        var obj_table = $('#register').DataTable({
                        "order": [[ 0, "desc" ]],
                        "fnDrawCallback": function( oSettings ) {
                                                $(".popovers").popover({ trigger: "hover" });                            
                                            }
                        });
        var info = obj_table.page.info();
        $('#tableInfo').html(info.page+1);
        $('#register').on('page.dt', function(){
            var info = obj_table.page.info();
            $('#tableInfo').html(info.page+1);
        });
        alert(page_no);
        obj_table.page(page_no).draw(false);
    });

This question has an accepted answers - jump to answer

Answers

  • rajaaarajaaa Posts: 21Questions: 10Answers: 2
    Answer ✓

    its just a type conversion error

  • allanallan Posts: 64,032Questions: 1Answers: 10,555 Site admin

    Good to hear you got it sorted. In future, please link to a test case showing the issue, as per the forum rules.

    Allan

This discussion has been closed.