I am creating an ASP to display customer order status. The complete page itself must fit an 800x600 screen resolution. The page will be divided into 3 major sections (horizontally). The first section will contain a drop-down list of all current customers. Once a customer is selected, the second section will be filled with that customers open orders. Then, a customer order may be selected to display (in the third, or bottom section) all the line-items on that order.
I have created the page, and the logic, the last part of this puzzle is what eludes me. I have created the "details" or "line-items" of the selected order to be displayed in a table. The columns can change in size and number depending on the line-item. No matter how small I make the fonts (obviously still allowing them to be LEGIBLE), the length of the row can be longer than the width of the page. I have used IFRAME, FRAME, and DIV tags to create a "scrollable" table, which works. The customer is now asking if I can keep the same look and feel, but "lock" the table headers so that if the number of items in the table must scroll below the available screen, when they scroll down the item list, the header at the top remains. I will try to give a simple picture of the table below. This is not the actual data, but this is an extrusion company and the data probably wouldn't make complete sense to all of you anyway (hopefully it will align when presented below):
--------------------------
----------
----------
----------
|Item | Desc | Ordered | Assembled | Packed | Shipped
--------------------------
----------
----------
----------
| 1 | chair | 2 | N/A | 2 | 0
| 2 | desk | 1 | 0 | 0 | 0
| 3 | table | 2 | 2 | 2 | 0
--------------------------
----------
----------
----------
Can someone provide me with the code so that when the header (Item, Desc, etc.) and/or details (1, chair, ..., 2, desk, ..., etc.) are wider or longer than the displayed page, they will scroll in the proper direction but the headers stay locked when scrolling vertically. I can do this with VB grids but would have to completely rewrite this ASP to incorporate them. There should be some combination of CSS (IFrame, Frame, Div, etc.) and/or Javascript or other trick that can do this.
Please don't be the first answer with "it can't be done..." or "I dont know how..." and discourage others. Not to sound rude, but if you don't have an answer, DON'T ANSWER. I have been on the receiving end of answers that clutter up the comments with "non-answers" simply because someone couldn't handle that they didn't have an answer but felt they should. I will answer any questions you have to help solve the problem.
I have made this question worth 300 points, but I am willing to add extra points later if the answer is concise and quick (I need to have this fixed by next week).