|
Answer» Hello, I'm new here and hoping you could perhaps help me with this html problem.
I have to show a list of over 4000 booktitles, with additional info about them. When this list was still small I used a table and found a simple javascript 'SORT' routine that works really fine. (You can see the small one here if you like.) But since now 4000 titles is too long for one page I have to break this table up into different pages, but when I do this 'sort' function doesn't work any more, at least not for the other pages.
So, what I basically need is to either make it sort all pages (which would mean break up the table), or else to still use this one 4000 rows long table yet only show part of it (f.e. 50 at a time). But I wouldn't know how to do either. This is my problem (and I hope I've made it CLEAR a little , English is not my native language). How could it be solved in an easy way?
Thanks in anticipation for any suggestion.
This is a job for PHP and a database. Do you have any knowledge of server-side programming?Sadly, no. I know HTML only and I'm able to implement some pre-cooked javascripts. I'd prefer an easy html/javascript solution given the short amount of time I can give to it, but I'm always willing to learn. I would suggest putting the data in a single CSV file, load it into an array, then sort that way. You could limit which of the lines of data you write to the document. But doing this ACROSS pages is somewhat laborious and processor-intensive at the client end. I've never tried doing this kind of thing client-side, because PHP is much more efficient at this kind of task.
It MIGHT be a bit too much to learn a new programming language just for this task. On the other hand, I guarantee that once you've learnt PHP and SEEN the performance benefits and the versatility of the language, you'll end up using javascript much less.
|