jQuery effect when user clicks on Previous/Next

jQuery effect when user clicks on Previous/Next

mikejmikej Posts: 8Questions: 0Answers: 0
edited December 2009 in General
Sorry if this has already been asked. I did several searches.
I want to use jQuery's slideDown() or show(500) to transition on the next page when the user clicks on Prev/Next.
I know its unnecessary and superficial but a several users have suggested that my page with the dataTable should be "more fun to use". Also, I suppose, it could serve a practical purpose - currently going to the next page is so fast that the user might not even realize it has happened. An effect would make it clear. Thanks.

Replies

  • allanallan Posts: 63,528Questions: 1Answers: 10,473 Site admin
    Hi mikej,

    I think the closest you will get, when using DataTables, is something like the effect in this paging plug-in: http://datatables.net/examples/api/paging_plugin.html . It's not smooth, but that's because DataTables removes the TR elements from the DOM, and then adds them back in as required. It would take quite a bit of re-engineering to make it smooth I think.

    Hope this helps,
    Allan
  • mikejmikej Posts: 8Questions: 0Answers: 0
    Thanks Allan! You are just so quick with the answers. I don't think I'll go with this but its interesting to see how he does it.
  • ashimashiashimashi Posts: 7Questions: 0Answers: 0
    just came across this, the link provided by allan above seems to be broken now. I presume the correct link is http://datatables.net/plug-ins/pagination ?
This discussion has been closed.