Dynamic Height
-
:confused:I have a table which grows dynamically. Every row has different height due to its text inside which varies so the height of the row. Does someone know how to find pixel height of the table? I am using JavaScript. Agha Khan
-
:confused:I have a table which grows dynamically. Every row has different height due to its text inside which varies so the height of the row. Does someone know how to find pixel height of the table? I am using JavaScript. Agha Khan
Try the
offsetHeight
property: http://msdn.microsoft.com/workshop/author/dhtml/reference/properties/offsetheight.asp[^]
"These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer
-
:confused:I have a table which grows dynamically. Every row has different height due to its text inside which varies so the height of the row. Does someone know how to find pixel height of the table? I am using JavaScript. Agha Khan
Agha Khan wrote: Dear Richard Deeming: Thank you for a kind reply. It does work perfectly. Let me ask you another question. You might know the answer. I created a calendar, which has a table. Every cell of the calendar (table) has a text associated (Date) with it. The user can double click to select the text, but I want to prevent that. Do you any ideas how we can stop double click? By the way I went to UMIST (Manchester, UK) for my BS in Mathematics. Best regards, Agha Try adding
onselectstart="return false;"
to your table.
"These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer