Jump to content

Please help with dynamic table sorting


lingo5

Recommended Posts

Hi,

I want to be able to sort table columns dynamically, like clicking on a header arrow?

I have no idea where to start. I did a google search and I found lots of pre-made extensions bu not a simple tutorial to get me started.

Can you point me in the right direction?

Thanks

Link to comment
https://forums.phpfreaks.com/topic/251884-please-help-with-dynamic-table-sorting/
Share on other sites

That would likely be best achieved using jquery mate because it's not really dynamic - you're just shuffling data that's already been generated and not actually pulling new data.

 

At any rate checkout jquery http://api.jquery.com.

 

I think there are probably a few ways to acheive what your example does. One would be an ajax call to a script that reproduces the table based on what has been clicked. Or a less resource intensive method would be to create a jquery script to pull out the table values into an array and remake the table based on the desired sort option - though that would need some thought to pull off correctly. Hope that helps a little...

 

 

Drongo

 

Sorry...this is want I want to do

http://www.dynamictable.com/

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.