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.
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.
Now, I am failing at being able to find a quick and dirty solution. I have searched for javascript and CSS scrollbars and scrolling regions but all I get are answers for scrolling a number of images and tips on changing the color of the scrollbars. I want to scroll a single image. If I am going to scroll the image that I draw, I need to be able to scroll the column and row header graphic areas along with the cell areas.
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.
posted by Drasher to computers & internet (14 answers total) 2 users marked this as a favorite
posted by Artw at 10:00 AM on February 21, 2011