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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Getting the height of a dynamic table (JSP & javascript)

Status
Not open for further replies.

karu76

Programmer
Dec 14, 2000
27
SG
hi anyone,

i am using JSP to increase the number of rows in a table. At the same time i need to retrieve the height of table upon each increment. How can i achieve this.

eg.

<% while(rowcount < totalrows) { %>
<table id = &quot;t1&quot;>
<tr>
<td>text</td>
</tr>
</table>
<% } %>


I tried using document.all.t1.height but it did not work.
please help.
thanks in adv.
 
document.all(&quot;testTable&quot;).offsetHeight

Works in IE 4 and 5 on NT 4 Workstation.

I don't have the patience to figure it out for the Nasty browser.

-pete
 
hi, thanks for your reply.

the &quot;testtable&quot; that u have assigned, is it the table id?

Does this have the capability to alert at every increment of rows.

please enlighten me.

thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top