Always increment request button prev and next
Always increment request button prev and next
Im new in datatable i have problem with pagging next and previous, so when i click button next , this button request 1 and go to then next page, and when i press 1 more this button request increment, its request always increment for button next and previous
so for example 1->2->4->7->11->16->22->29->21->12 etc
+1 , +2 , +3 ,+4 , +5 , +6 , -7 , -8 .. etc
i mean request increment is like this when i press 1 times next button this request is appears , when i try to use fire bugs event handler of this button is always increment any idea ?
GET searchPage?sEcho=62&iCol...suedBy=&=1479439076107
GET searchPage?sEcho=63&iCol...suedBy=&=1479439076108
GET searchPage?sEcho=64&iCol...suedBy=&=1479439076109
GET searchPage?sEcho=65&iCol...suedBy=&=1479439076110
GET searchPage?sEcho=66&iCol...suedBy=&=1479439076111
GET searchPage?sEcho=67&iCol...suedBy=&=1479439076112
GET searchPage?sEcho=68&iCol...suedBy=&=1479439076113
GET searchPage?sEcho=69&iCol...suedBy=&=1479439076114
GET searchPage?sEcho=70&iCol...suedBy=&=1479439076115
GET searchPage?sEcho=71&iCol...suedBy=&=1479439076116
this event handler always increment too when im inspect from firebugs
function(a)
jquery-....min.js (line 4)
function(event)
dataTab...tend.js (line 106)
function(event)
dataTab...tend.js (line 106)
function(event)
dataTab...tend.js (line 106)
function(event)
dataTab...tend.js (line 106)
function(event)
dataTab...tend.js (line 106)
function(event)
dataTab...tend.js (line 106)
function(event)
dataTab...tend.js (line 106)
function(event)
dataTab...tend.js (line 106)
function(event)
dataTab...tend.js (line 106)
function(event)
dataTab...tend.js (line 106)
function(event)
dataTab...tend.js (line 106)
here is my button next
$('#pagging_'+ oSettings.sTableId+ ' .next')
.bind('click.DT',
{ action : "next" },
function(event)
{
if (!$(this).hasClass('disabled'))
{
fnClickHandler(event);
}
}
);
Answers
Thanks for your question - however, per the forum rules can you link to a test case showing the issue please. This will allow the issue to be debugged.
Information on how to create a test page, if you can't provide a link to your own page can be found here.
Thanks,
Allan