Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Getting the width of a cell
Message
De
20/04/2012 10:21:34
 
 
À
Tous
Information générale
Forum:
Javascript
Catégorie:
Autre
Titre:
Getting the width of a cell
Divers
Thread ID:
01542235
Message ID:
01542235
Vues:
63
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform