Hi,
I have a html page where in the table spans for two pages
the first page's last row doesn end properly and the 2nd page's first row also isnt proper.The code i use is given below,the no of pages the table will spread over is dyanmically decided, - <html>
-
<head>
-
<style>
-
-
tHead
-
{
-
display : table-header-group;
-
}
-
-
-
</style>
-
</head>
-
<script>
-
-
function AddTHEAD(tableName)
-
{
-
var table = document.getElementById(tableName);
-
if(table != null)
-
{
-
var head = document.createElement("THEAD");
-
head.style.display = "table-header-group";
-
head.appendChild(table.rows[0]);
-
table.insertBefore(head, table.childNodes[0]);
-
}
-
-
}
-
</script>
-
<body onload="javascript: AddTHEAD('DataGrid')">
-
-
<table border="1" id="DataGrid">
-
-
<tr>
-
<th>Heading</th>
-
<th>Another Heading</th>
-
</tr>
-
-
<tr>
-
<td>row 1, cell 1</td>
-
<td>row 1, cell 2</td>
-
</tr>
-
<tr>
-
<td>row 2, cell 1</td>
-
<td>row 2, cell 2</td>
-
</tr>
-
<tr>
-
<td>row 2, cell 1</td>
-
<td>row 2, cell 2</td>
-
-
</tr>
-
<tr>
-
<td>row 2, cell 1</td>
-
<td>row 2, cell 2</td>
-
</tr>
-
<tr>
-
<td>row 2, cell 1</td>
-
<td>row 2, cell 2</td>
-
</tr>
-
<tr>
-
<td>row 2, cell 1</td>
-
<td>row 2, cell 2</td>
-
-
</tr>
-
<tr>
-
<td>row 2, cell 1</td>
-
<td>row 2, cell 2</td>
-
</tr>
-
<tr>
-
<td>row 2, cell 1</td>
-
<td>row 2, cell 2</td>
-
</tr>
-
<tr>
-
<td>row 2, cell 1</td>
-
<td>row 2, cell 2</td>
-
-
</tr>
-
<tr>
-
<td>row 2, cell 1</td>
-
<td>row 2, cell 2</td>
-
</tr>
-
<tr>
-
<td>row 2, cell 1</td>
-
<td>row 2, cell 2</td>
-
</tr>
-
<tr>
-
<td>row 2, cell 1</td>
-
<td>row 2, cell 2</td>
-
-
</tr>
-
<tr>
-
<td>row 2, cell 1</td>
-
<td>row 2, cell 2</td>
-
</tr>
-
<tr>
-
<td>row 2, cell 1</td>
-
<td>row 2, cell 2</td>
-
</tr>
-
<tr>
-
<td>row 2, cell 1</td>
-
<td>row 2, cell 2</td>
-
-
</tr>
-
<tr>
-
<td>row 2, cell 1</td>
-
<td>row 2, cell 2</td>
-
</tr>
-
<tr>
-
<td>row 2, cell 1</td>
-
<td>row 2, cell 2</td>
-
</tr>
-
<tr>
-
<td>row 2, cell 1</td>
-
<td>row 2, cell 2</td>
-
-
</tr>
-
<tr>
-
<td>row 2, cell 1</td>
-
<td>row 2, cell 2</td>
-
</tr>
-
<tr>
-
<td>row 2, cell 1</td>
-
<td>row 2, cell 2</td>
-
</tr>
-
<tr>
-
<td>row 2, cell 1</td>
-
<td>row 2, cell 2</td>
-
-
</tr>
-
<tr>
-
<td>row 2, cell 1</td>
-
<td>row 2, cell 2</td>
-
</tr>
-
<tr>
-
<td>row 2, cell 1</td>
-
<td>row 2, cell 2</td>
-
</tr>
-
<tr>
-
<td>row 2, cell 1</td>
-
<td>row 2, cell 2</td>
-
-
</tr>
-
<tr>
-
<td>row 2, cell 1</td>
-
<td>row 2, cell 2</td>
-
</tr>
-
<tr>
-
<td>row 2, cell 1</td>
-
<td>row 2, cell 2</td>
-
</tr>
-
<tr>
-
<td>row 2, cell 1</td>
-
<td>row 2, cell 2</td>
-
-
</tr>
-
<tr>
-
<td>row 2, cell 1</td>
-
<td>row 2, cell 2</td>
-
</tr>
-
<tr>
-
<td>row 2, cell 1</td>
-
<td>row 2, cell 2</td>
-
</tr>
-
<tr>
-
<td>row 2, cell 1</td>
-
<td>row 2, cell 2</td>
-
-
</tr>
-
<tr>
-
<td>row 2, cell 1</td>
-
<td>row 2, cell 2</td>
-
</tr>
-
<tr>
-
<td>row 2, cell 1</td>
-
<td>row 2, cell 2</td>
-
</tr>
-
<tr>
-
<td>row 2, cell 1</td>
-
<td>row 2, cell 2</td>
-
-
</tr>
-
<tr>
-
<td>row 2, cell 1</td>
-
<td>row 2, cell 2</td>
-
</tr>
-
<tr>
-
<td>row 2, cell 1</td>
-
<td>row 2, cell 2</td>
-
</tr>
-
<tr>
-
<td>row 2, cell 1</td>
-
<td>row 2, cell 2</td>
-
-
</tr>
-
<tr>
-
<td>row 2, cell 1</td>
-
<td>row 2, cell 2</td>
-
</tr>
-
<tr>
-
<td>row 2, cell 1</td>
-
<td>row 2, cell 2</td>
-
</tr>
-
<tr>
-
<td>row 2, cell 1</td>
-
<td>row 2, cell 2</td>
-
-
</tr>
-
<tr>
-
<td>row 2, cell 1</td>
-
<td>row 2, cell 2</td>
-
</tr>
-
<tr>
-
<td>row 2, cell 1</td>
-
<td>row 2, cell 2</td>
-
</tr>
-
<tr>
-
<td>row 2, cell 1</td>
-
<td>row 2, cell 2</td>
-
-
</tr>
-
<tr>
-
<td>row 2, cell 1</td>
-
<td>row 2, cell 2</td>
-
</tr>
-
<tr>
-
<td>row 2, cell 1</td>
-
<td>row 2, cell 2</td>
-
</tr>
-
<tr>
-
<td>row 2, cell 1</td>
-
<td>row 2, cell 2</td>
-
-
</tr>
-
<tr>
-
<td>row 2, cell 1</td>
-
<td>row 2, cell 2</td>
-
</tr>
-
<tr>
-
<td>row 2, cell 1</td>
-
<td>row 2, cell 2</td>
-
</tr>
-
<tr>
-
<td>row 2, cell 1</td>
-
<td>row 2, cell 2</td>
-
-
</tr>
-
<tr>
-
<td>row 2, cell 1</td>
-
<td>row 2, cell 2</td>
-
</tr>
-
<tr>
-
<td>row 2, cell 1</td>
-
<td>row 2, cell 2</td>
-
</tr>
-
<tr>
-
<td>row 2, cell 1</td>
-
<td>row 2, cell 2</td>
-
-
</tr>
-
<tr>
-
<td>row 2, cell 1</td>
-
<td>row 2, cell 2</td>
-
</tr>
-
-
-
-
</table>
-
</body>
-
</html>
Thanks
Albin
2 3860
Honestly I can't find anything wrong with it. It may look a little awkward at the end of the page but it is not very noticeable. If you are really having problems with it, I suggest putting a page break before the table or making two tables. I can't seem to recreate your error. If your page is published you could post the link and I could take a look at it else you're on your own.
Computer Guru
Must be an IE issue. I am looking at it in FireFox 3 and no problems. I looked at it in IE and it does have issues. Here is an article that may help you with this.
--Kevin
Sign in to post your reply or Sign up for a free account.
Similar topics
by: tomy_baseo |
last post by:
I'm new to HTML and want to learn the basics by learning to code by hand
(with the assistance of an HTML editor to eliminate repetitive tasks).
Can anyone recommend a good, basic HTML editor that's...
|
by: sinister |
last post by:
I wanted to spiff up my overly spartan homepage, and started using some CSS
templates I found on a couple of weblogs. It looks fine in my browser (IE
6.0), but it doesn't print right. I tested...
|
by: Pat |
last post by:
I would like to send the Print Preview of a MS Access form to a
Snapshot file. The form contains an OLE graph.
BACKGROUND
A snapshot of a report is possible. If I could I would use a report to...
|
by: Sean McKaharay |
last post by:
Since no one can answer the following question:
I have a issue. I need to create a command line application/or windows
application that will take 2
parameters and will print to the default...
|
by: Dean Slindee |
last post by:
Anybody written code in VB.NET to: 1) show a print preview window of reports
already written and stored in an Access 2002 database; or 2) execute the
print of a report stored in an Access 2002...
|
by: Beowulf |
last post by:
I have a report laid out in Design View as shown at the end of this message.
I have code that performs the following steps:
1. In main report's Report_Open(), DELETE any old rows in tblTOC for...
|
by: dvdastor |
last post by:
Hello,
Is there a way that anyone knows of to preview an HTML string and have
it formatted as HTML in a PrintPreviewDialog? In other words, can the
PrintDocument that is required for this...
|
by: igotyourdotnet |
last post by:
I need to create a print preview page BUT my page I need to print has a grid
and in the grid I have 2 or 3 columns that have links I want to hide the
columns with the links on my print preview page...
|
by: Santander |
last post by:
how to decode HTML pages encoded like this:
http://www.long2consulting.com/seeinaction2008/Simplicity_Beach_table/index.htm
Is there script that will do this automatically and generate normal fully...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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...
|
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
|
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...
|
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,...
|
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...
|
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: 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...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
| |