Updated datatables pagination stopped working
Updated datatables pagination stopped working

Hello, I'm trying to update datatables from 2.0.3 to 2.3.2 and it mostly works, but pagination stops working. I noticed the buttons go from being 'a' links to buttons. I'm using server-side processing with no changes, and it seems like it should be getting the data back as usual. Is there something I should look at to get the buttons working where a links worked before?
Answers
Server side processing should follow this [protocol]https://datatables.net/manual/server-side), If the paging buttons aren't correct then I suspect the response doesn't have the correct parameter values for Datatables to calculate the number of pages. Start by using the browser's network inspector to see the JSON response. Post the JSON response so we can take a look.
What exactly is the issue you are seeing?
Can you post a link to your page so we can take a look to help. debug? If not maye you can PM Allan with a link so he can help debug.
Kevin
The fact that it uses
button
rather thana
should make no difference (as seen on the examples on this site). That was does for improved accessability and better theme integration.Allan
Just clicking a page button does nothing on the front-end. But I can see the server respond with what looks like the usual results, which work well on 2.0.3. I sent allen a PM and will reply back here if we figure it out. Thanks!
Allan was able to help identify a custom jQuery selector listening to buttons that needed to be better constrained. Thank you for your help on figuring that out, allan!