Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

get table height for loading table

Status
Not open for further replies.

iamsw00sh

Programmer
May 21, 2003
92
RO
i am displaying data in an HTML table (id="BigTable2print"):

i have a loop in asp:
getting the data from database
display several <tr>-s (table rows) in HTML

After the whole table is displayed i can do a javascript like :

var BigTable2printHeight = document.getElementById(&quot;BigTable2print&quot;).Height

right?

and I have the height of the table ...

My problem is that this table is gonna be printed (on paper), and I would like to know the height of the table after every displayed row so I could insert a <tr style=&quot;page-break-after: always;&quot;>

Any idea how van i get the height of an unclosed table or the unfinished screen?

I need ASP or Javascript

thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top