Now you can sort the list by clicking on the links? SortMode = activity ,? SortMode = comments
I was thinking, can I sort the list without refreshing the site? (You know that when you click on a link, sortMode = comment, example, you get refreshed).
Sortmode is affecting only $ query, which selects WHERE type = activity and does so.
How can I make it clever, to use, so it changes the $ query line in any way, while nothing is refreshing it might not be possible, just a thought So another way to do this?
You can call all AJAX requests on your page, instead of linking to the page , And make the list again.
Example (with suggested edits):
& lt; A href = "#" id = "sort_activity" & gt; Sort by activity & lt; / A & gt; Click $ ('# Sort_activity') (function (e) {e.preventDefault (); $ ('# your_list'). Load ('/ url / to / table #list', 'sortmode = activity');} );
Comments
Post a Comment