dataTables loses event after page 1
dataTables loses event after page 1
Hi there,
I try to understand how to apply event recalling.
I'd like to have this:
// name=modal is called by javascript to display window with included file.
On every page, not just the first one. I must say, that FAQ:Events doesn't say much to me.
I'm using:
js/morris/morris.min.js
js/modal-window/custom.js
I try to understand how to apply event recalling.
I'd like to have this:
// name=modal is called by javascript to display window with included file.
On every page, not just the first one. I must say, that FAQ:Events doesn't say much to me.
I'm using:
js/morris/morris.min.js
js/modal-window/custom.js
This discussion has been closed.
Replies
So you could hook to fnDrawCallback like this
[code]
"fnDrawCallback": function(oSettings) {
$myTableElement.find('tr').each(function() {
var tr_element = jQuery(this);
tr_element.unbind('click.datatable_onTableRedraw');
tr_element.bind('click.datatable_onTableRedraw', function(e) {
//my stuff here
});
});
}
[/code]
Allan