How do I place a pagination plugin in an external javascript?

How do I place a pagination plugin in an external javascript?

rtnprortnpro Posts: 2Questions: 0Answers: 0
edited February 2011 in Plug-ins
Hi,

I have written a custom pagination plugin with help from http://www.datatables.net/plug-ins/pagination . Now, my template looks a lot messy. I want to put the plugin in an external javascript file. I am new to javascript. So, can someone help me to do this?

Replies

  • allanallan Posts: 63,489Questions: 1Answers: 10,470 Site admin
    You could do something like in this code block: http://www.datatables.net/plug-ins/pagination#how_to . Load jQuery, than DataTables, then your pagination plug-in (which is just saved into a text file) and then initialise the plug-in as needed.

    Allan
This discussion has been closed.