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
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/

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.