Adding events to pagination changes?
Adding events to pagination changes?
streetlight
Posts: 26Questions: 0Answers: 0
Hey all,
Perhaps I'm not understanding everything necessary, but I've been trying for hours (maybe days) to have certain functions run when the page is changed (specifically, reloading and other custom events that run normally on page one). I can't seem to figure it out. As of now, I'm targeting the events using the classes and ID's on the page number changes, but this has only been leading to more bugs and it's driving me crazy!
Someone out there, please help! I feel like there is a simple answer I just can't find!!!!!
Perhaps I'm not understanding everything necessary, but I've been trying for hours (maybe days) to have certain functions run when the page is changed (specifically, reloading and other custom events that run normally on page one). I can't seem to figure it out. As of now, I'm targeting the events using the classes and ID's on the page number changes, but this has only been leading to more bugs and it's driving me crazy!
Someone out there, please help! I feel like there is a simple answer I just can't find!!!!!
This discussion has been closed.
Replies
Allan
Allan, would you be able to post an example of the page event being used? Do I put it in the initalization, or target it after the page has loaded? Sorry for the beginner-esque question!
I can use fnDrawCallback for most of what I need, but in one of my functions I'm have to use fnGetNodes, which don't exist yet during the fnDrawCallback (at least to my knowledge).
Thank you again!
$('#myTable').on('page', function () {...} );
[/code]
should be all that is needed.
Allan