473,406 Members | 2,894 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Freezing Headers ... Possible?

39
Hi everyone,

I currently display XML data with XSLT which works fine (including some dynamic filtering with JavaScript).

However, often the data which is returned is quite lengthy and, as the user scrolls down to look at the data, the header disappears off the top of the viewable portion of the browser. This is quite irritating as the header contains summing and title information which should remain in view.

So my question here is whether there is an easy way to freeze the header and make the data scrollable?

Of course the first thought that I had was to use 'frames' but I believe that this would either be impossible with XSLT or would make the coding significantly more complex. Am I right or is there an easy way to do this?

Any tips or links to HOWTOs would be a big help.

Many thanks,
Alan Searle
Aug 21 '07 #1
3 1977
jkmyoung
2,057 Expert 2GB
It sounds like you want CSS, with a header div that remains in fixed or absolute position, and a scrolling div in the middle.

eg http://www.cssplay.co.uk/layouts/basics2.html
Let us know if that works for you.
Aug 21 '07 #2
asearle
39
Many thanks for the link showing how to freeze the headers ...

eg http://www.cssplay.co.uk/layouts/basics2.html

... and yes, this works fine (even incorported into an XSL file). I'm very pleased and many thanks for your help.

However, I am curious about one thing:

As it is, I will use the frozen head to hold my column headers and totals in place while the data is scrollable. This will mean that the user will see both the detail numbers and the totals at once which was not the case before.

Yes, that works fine but I am now having to fiddle around with declarations of absolute position in order to keep the headers above their respective columns. This works but is a bit tedious and could cause problems if one user needs to access the system from a computer with a smaller screen (i.e. the columns will not re-sized).

What would be even better than the frozen headers would be a scrollable grid or table where I can declare a table and then the system automatically makes that table scrollable (like a list box) while keeping the headers static.

Am I asking too much? Does such a thing exist?

Any tips would be gratefully received.

Regards and many thanks,
Alan Searle
Aug 29 '07 #3
asearle
39
I've been google on 'scrollable grid' and there seems to be a lot of discussion (noise) out there on this topic.

It seems that there are commercial solutions and a lot of ASP chat about this issue. However, I am working with XSLT & JavaScript and don't really want to get involved in testing 'add-ons' or writing lots of code.

If there is nothing that is more or less (HTML) standard, then I will probably stick with the frozen-header solution. That works well and looks good and so all I need to do is to fix the widths of the columns.

Many thanks,
Alan Searle
Aug 29 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: Steven K | last post by:
Hello, I am having a problem where my computer is freezing when I run a ASP.net project. It freezes in the debugger, or if I try to run it as localhost. I cannot even access the windows...
2
by: Job Lot | last post by:
Is there any way of freezing columns in Windows Forms Data Grid control? Thanks
0
by: nkparimi | last post by:
Hi, Here's what I'm trying: given an html table, to freeze the column headers and/or left column in IE. I understand that this is possible thru style sheets in IE, as suggested in the following:...
7
by: bearophileHUGS | last post by:
Most of my ideas seem usless or stupid, but I think expressing them here doesn't harm much. This is an idea for Py 3.0, because it's not backward compatible. Dicts and sets require immutable...
2
by: John Walker | last post by:
Hi, We have a datagrid with column headers. If the datagrid has more than say 25 rows the user needs to scroll down to be able to see the rest of the grid. When the user does this the column...
6
by: hem | last post by:
Hi, I have the following small program which read password from user after echoing off. But the problem is, it is freezing for some time (not sure about the duration) before going to the next...
3
by: Mark rainess | last post by:
The program displays images from a motion jpeg webcam. (Motion jpeg is a bastardization of multi-part mime.) <http://wp.netscape.com/assist/net_sites/pushpull.html> It runs perfectly for about 4...
2
by: fhtino | last post by:
Hello, I'm trying to create an email message with particular headers. A piece of code: SmtpClient smtp = new SmtpClient("192.168.x.y"); MailMessage msg = new MailMessage("from@xxxxxxx",...
8
by: travispennington | last post by:
To anyone that can assist me: I deeply appreciate your help!! I am developing an application with an outside vendor. The vendor has a very odd requirement. They need custom X-Headers added to...
3
by: NEWSGROUPS | last post by:
I am in the midst of trying to convert about 25 Access 2000 to Access 2003. The new environment consists of Office/Access 2003 and Outlook 2003. When converting the back ends I have no problems....
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.