Hi everyone,
I'm trying to retrieve the width of a cell as the table is being
dynamically created and add it to a total. I can get the width from
an eventhandler such as:
<td onmouseover="al ert(this.width) ;">
but I don't want to require any user action.
I've tried using various statements from this newsgroup but none of
them have worked. Here's a summary of what I've tried:
document.all.ce llName.width -> % rather than pixel
document.all.ce llName.offsetWi dth -> 0
document.getEle mentById('cellI d').width -> 0
document.getEle mentById('cellI d').style.width -> 0
Please let me know if you have other suggestions.
Thanks.
I'm trying to retrieve the width of a cell as the table is being
dynamically created and add it to a total. I can get the width from
an eventhandler such as:
<td onmouseover="al ert(this.width) ;">
but I don't want to require any user action.
I've tried using various statements from this newsgroup but none of
them have worked. Here's a summary of what I've tried:
document.all.ce llName.width -> % rather than pixel
document.all.ce llName.offsetWi dth -> 0
document.getEle mentById('cellI d').width -> 0
document.getEle mentById('cellI d').style.width -> 0
Please let me know if you have other suggestions.
Thanks.
Comment