happyBanana
Programmer
- Jan 4, 2012
- 1
HI,
sorry if this is a bit obvious - i have been away from web programming for a few years.
i am producing a table, to be used as a shopping trolly. the table is inside a layer. i want to change the height of the layer so that the table does not overflow but "grows" as table is added to. i was going to do use something like:
var requiredHeight = document.getElementById("table").style.height
then use parseInt and use result to set layer height.
the PROBLEM is, i cannot get the height of the table - i get a blank - presumably a null
i would be grateful for any help.
many thanks
sorry if this is a bit obvious - i have been away from web programming for a few years.
i am producing a table, to be used as a shopping trolly. the table is inside a layer. i want to change the height of the layer so that the table does not overflow but "grows" as table is added to. i was going to do use something like:
var requiredHeight = document.getElementById("table").style.height
then use parseInt and use result to set layer height.
the PROBLEM is, i cannot get the height of the table - i get a blank - presumably a null
i would be grateful for any help.
many thanks