It's 2AM and I'm leaving the scrollbar...
February 21, 2011 9:52 AM Subscribe
I am stuck again and need help. I am tasked with creating a web page that displays information in a grid format. The data is static in that the user cannot change the values, but they can reorder the column and/or row order.
posted by Drasher to computers & internet (14 answers total) 2 users marked this as a favorite
There may be at times more columns or rows than will fit on the screen. I would like the display to look like a spreadsheet that has frozen panes (i.e. the row header titles do not disappear when scrolling to the right, the cells 'disappear' under the headers).
The cells of the grid will display small images that denote a ranking from 1 to 5, each with a different background color.
The data is always the same, but each user viewing the page will have a different display because the users can reorder the columns and rows.
My first attempt was to use the PHP GD functions and draw a grid and data into a JPG or PNG image. Now, it seems that the number of rows and columns may have grown to be too large to display as a single graphic.
One difficulty point is that the column headings are bigger than I would like. In my first attempt, I had used the drawtext functions to print the text for the headers on a 45 degree angle.
I am not adverse to using a prepackaged solution, but I cannot spend much and most packages that I have seen have a bunch of overkill for what I am trying to do.
If there is a better and/or easier way, I would really like to hear about it.