Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Getting the width of a cell
Message
From
20/04/2012 10:21:34
 
 
To
All
General information
Forum:
Javascript
Category:
Other
Title:
Getting the width of a cell
Miscellaneous
Thread ID:
01542235
Message ID:
01542235
Views:
62
I have the following code which get a reference to a table cell:
loObject=window.parent.document.getElementById("TD2")
loObject.style.width=tnWidth-lnWidth
alert(loObject.width)
alert(loObject.style.width)
The first alert message will show the width of the cell as defined in the HTML page. The second alert message will show the actual width of the cell as redefined on the second line. Why is the first message not able to show the actual width of the cell but always the original width as defined in the HTML?
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Next
Reply
Map
View

Click here to load this message in the networking platform