473,395 Members | 1,702 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,395 software developers and data experts.

Scrolling table options?

39
Hi everyone,

I have some simple but very long reports that I would like to present in tabular format. To make this more comfortable for the reader I would like the headers to remain static at the top of the tables and just the content to scroll.

I got this working with 'DIV' commands but found that, as various users re-sized their browsers, the column headers would go out of line. I tried fixing this with column width declarations but this wouldn't work in all cases (i.e. where text is too long for the column, it all gets distorted).

Next I found the mark-up tags <thead> and <tbody> which looked perfect for my needs ...

http://www.w3.org/TR/html4/struct/tables.html#edef-TBODY

... but here I found that, in order to get this to work with IE (where the presentation wasn't as good as Firefox), I needed to add the declaration ...

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

... at the top of the HTML.

Then, when I tried to incorporate my scrolling table into my XSL code, I found that both the header (<!DOCTYP HTML ... ) was not accepted by the IE interpreter and my '<xsl:when ...' clauses conflicted with my (new) <thead> and <tbody> syntax.

This is all turning into a rather big headache for me and I am hoping that someone out there can recommend the best method for implementing scrollable tables (with fixed headers) in XSL under IE.

This must be an issue that has come up before and, although I have googled on the key words (a lot), I find no clear recommendations and loath to resort to the various plug-ins and coded fixes that seem to be on offer. Best for me would be the thead/tbody solution but I must be able to implement this in XSLT under IE.

Many, many thanks for any tips that you can give me.

Cheers,
Alan.
Oct 28 '07 #1
1 2349
jkmyoung
2,057 Expert 2GB
XSLT uses a special method to output doctype, so that the processor can tell whether it's the doctype for the xslt, or the doctype for the result document:

Use a <xsl:output> element just under they stylesheet node.
http://www.w3schools.com/xsl/el_output.asp

<xsl:output doctype-public="-//W3C//DTD HTML 4.0 Transitional//EN" doctype-system="http://www.w3.org/TR/html4/loose.dtd"/>
Oct 29 '07 #2

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

Similar topics

10
by: J P Singh | last post by:
Hi There We have dropdown on ASP page. The problem is we have about 900 items in the dropdown. Users scrolling through the list have become very frustrated in the past. Can someone suggest...
9
by: johkar | last post by:
I only have IE 6 and dial-up. Can you help me determine which browsers support this code? Thanks, John <html> <head> <title>Fixed Table Headers</title> <script language="JavaScript"...
44
by: Jim M | last post by:
I have had great success with using <iframe> with overflow-y set to auto. I can get a similar look with the <iframe> tag. BUT... In all cases I need to have fixed heights. Is there a way to...
4
by: headware | last post by:
I have a <select> control that contains many entries. It allows the user to multi-select a group of them, click a button, and store the selected data in a database. Normally they do this starting...
1
by: Warren Pollans | last post by:
Hello, I have a selectbox with 'multiple' enabled. It works fine. My question is related to formatting the options. I want the options to appear in three columns as though it were a...
7
by: Shawn B. | last post by:
Greetings, I am trying to create a table that has a scrolling body. The problem I'm experiencing is that if the columns in the "body" part of the table exceed the width of the "header" then...
6
by: Jon Paal | last post by:
an excellent working solution for scrolling tables appears at this link http://www.litotes.demon.co.uk/example_scripts/tableScroll.html author has no contact page, but I have a question about...
2
by: Gaetan | last post by:
I have some log data maintained in a DB that I would like to display on a web page. Some rows of the DB table are wider than the web page therefore horizontal scrolling will be required to view the...
1
by: asearle | last post by:
Dear all, I have been working to implement a scrolling table into an xml / xsl interface and so far have managed to put together an acceptable version using <thead> and <tbody> syntax. Indeed for...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...

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.