I commited to doing this ( seemed simple, but it not as simple as I thought ) and I hope someone knows what I missed.
I have a series of tables on a page that are created dynamicly. the tables can get vary large in both width and height. So I planned to wrap scrollbars around them when needed but only when needed.
I wrapped the table in a DIV tag <Div id=launchPad> and then tried to get it’s height and width in the onload.
e=document.getElementById(“launchPad”);
alert( ” Launch pad alert Height ” + e.style.offsetHeight );
alert( ” Launch pad alert width ” + e.style.offsetWidth );
but if the div does not have a defined size I get an undefined value.
what I want to do is if the width is to large then set the width with an overflow.
any help ?