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 3909
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
eWish 971
Recognized Expert Contributor
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 a step beyond
Notepad (not a WYSIWYG tool). Thanks.
|
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 the blogs, and one definitely
didn't print right.
Surveying the web, my impression is that CSS is very unreliable, because
even updated browsers fail to implement the standards correctly.
So should one just avoid CSS? Or is it OK if used...
|
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
display the graph but it is not possible to send query parameters to
an OLE graph on a report (or programatically change any properties of
an OLE Graph).
However with a Form you do have the ability to change the RowSource of
|
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 printer without any popups. the
first parameter is the html file name(location) second is a switch that will
tell the app to print in landscape or protrait. Basicly I when I type in
(for example) PrintApp "c:\printthis.html" \L it should print the file...
|
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 database?
Thanks,
Dean Slindee
| |
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
this username.
2. In main report's CategoryHeader_Format(), add a row to tblTOC with
the current category name and the current page number.
3. In the table of contents subreport, Cancel if NoData event fires.
|
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 render/understand HTML?
Everything that I have seen looks like it will just print out the raw
string and not the rendered HTML.
I know I can do this with a WebBrowser Control and the
|
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 so they don't print. Is that
possible to do and if so can someone point me somewhere or show my a code
snippet on how to do this?
|
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
readable HTML?
Santander
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |