Jump to content

Need some help with pagination

Alterlai
Go to solution Solved by cynexit,

If it is not too much data, simply output one big <table> and then use datatables on it like in this "zero configuration exmaple":

https://www.datatables.net/examples/basic_init/zero_configuration.html

 

If there are to many demos and the table would become to big to load it in one big request simply use "bServerSide": true and "sAjaxSource": "/URL/TO/DYNAMIC/PHP/SCRIPT/".

Hi

 

I'm building a small web app for personal use. It features a demo download for Counter Strike demo's. I would the demo's to be easily sortable and accessable. 

I have something in mind but I don't have any experience with jquery or AJAX or whatever. I would like something similar to a table basically. 

You would be able to sort by date and map. 

 

I've looked up a few things on the interwebz but I can't really make any sense of it as of yet. Preferably there would be some sort of pagination and sorting for easy access.

 

Is some beautiful person here able to help me out with this?

(Using bootstrap with intermediate PHP and HTML skills)

 

Thanks! :D

CPU:

Intel Core i5 2500k - Motherboard: Asus maximus iv gene-z - RAM: 2x Corsair Vengeance Blue 4GB DDR3-1600 CL9 - GPU: ASUS GTX 770 DirectCU II
Case: Coolermaster Centurion 5 II - Storage: Crucial M4 128GB, Seagate barracuda 3TB PSU: XFX 650W XXX Edition Modular PSU - Keyboard: Ducky Shine 2 Pro
Mouse: Razer Deathadder 2013 - Sound: Razer Characias
Link to comment
Share on other sites

Link to post
Share on other sites

If it is not too much data, simply output one big <table> and then use datatables on it like in this "zero configuration exmaple":

https://www.datatables.net/examples/basic_init/zero_configuration.html

 

If there are to many demos and the table would become to big to load it in one big request simply use "bServerSide": true and "sAjaxSource": "/URL/TO/DYNAMIC/PHP/SCRIPT/".

Link to comment
Share on other sites

Link to post
Share on other sites

If it is not too much data, simply output one big <table> and then use datatables on it like in this "zero configuration exmaple":

https://www.datatables.net/examples/basic_init/zero_configuration.html

 

If there are to many demos and the table would become to big to load it in one big request simply use "bServerSide": true and "sAjaxSource": "/URL/TO/DYNAMIC/PHP/SCRIPT/".

Thanks for the response!

This is a super usefull thanks!

Got it working now and it's looking great.

CPU:

Intel Core i5 2500k - Motherboard: Asus maximus iv gene-z - RAM: 2x Corsair Vengeance Blue 4GB DDR3-1600 CL9 - GPU: ASUS GTX 770 DirectCU II
Case: Coolermaster Centurion 5 II - Storage: Crucial M4 128GB, Seagate barracuda 3TB PSU: XFX 650W XXX Edition Modular PSU - Keyboard: Ducky Shine 2 Pro
Mouse: Razer Deathadder 2013 - Sound: Razer Characias
Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×