Hi,
I have the same problem, if I click on the (first, previous, next, last) buttons the alert message is shown, but if I click on a numbered button, nothing happens. Have you managaed to solve this problem?
[code]
$('.paging_full_numbers').live('click', function () {
alert('click');
});
[/code]
Hi allan,
thanks for your suggestion, but I have solved it (my problem) with a differnet approach, I simply added a function call in the dataTables code itself
[code]
U=function(){g._iDisplayStart=(this.innerHTML*1-1)*g._iDisplayLength;m(g);PageChanged(this.innerHTML*1-1);return false}
[/code]
in my other js file I have the function:
[code]
function PageChanged(target) {
alert('new Target' + target);
}
[/code]
Since you took the time to post a solution, I tested it, no success. Is it possible that two 'click' events are the problem? if I use:
[code]
$('.paging_full_numbers').unbind('click').bind('click', function () {
alert('click');
});
[/code]
I get the alert message, but of course the page will not be chnaged :)
Replies
I have the same problem, if I click on the (first, previous, next, last) buttons the alert message is shown, but if I click on a numbered button, nothing happens. Have you managaed to solve this problem?
[code]
$('.paging_full_numbers').live('click', function () {
alert('click');
});
[/code]
[code]
$('.paging_full_numbers span').live('click', function () {
alert('click');
});
[/code]
Allan
thanks for your suggestion, but I have solved it (my problem) with a differnet approach, I simply added a function call in the dataTables code itself
[code]
U=function(){g._iDisplayStart=(this.innerHTML*1-1)*g._iDisplayLength;m(g);PageChanged(this.innerHTML*1-1);return false}
[/code]
in my other js file I have the function:
[code]
function PageChanged(target) {
alert('new Target' + target);
}
[/code]
Since you took the time to post a solution, I tested it, no success. Is it possible that two 'click' events are the problem? if I use:
[code]
$('.paging_full_numbers').unbind('click').bind('click', function () {
alert('click');
});
[/code]
I get the alert message, but of course the page will not be chnaged :)