PDA

View Full Version : Is There a Script For This?



omoi
12-09-2006, 12:09 PM
Well, I'm pretty new to javascript and I was curious where I could find a script for sorting lists. Like, one column would have a title while another would have the number of chapters, and another would have a date. Where could I find a script for sorting that?

trust
12-10-2006, 02:09 PM
u mean like a graph? or iframes?

omoi
01-15-2007, 02:23 AM
Oh I just mean text like:
Alphabetical Order
Last Updated
Published Date
Status (in progress, completed)
Things like that with just text.

Nuvo
01-15-2007, 01:20 PM
I'm pretty sure that this kind of thing would be rather simple to do using AJAX methods if your data is stored in a database.
With AJAX (Active JavaScript And XML), you'd use JavaScript to send a request to a server side script (PHP, Rails, Perl or whatever you're using) when a column header is clicked.
Then, the backend would respond by ordering database results according to whatever it has to work on (assuming that Publishing Date, Status and so on are database table fields) and it would return the output.
Because of the AJAX, the output would then be inserted into the currently loaded page without reloading it.