?
Solved

Netscape Navigator clientWidth property

Posted on 2004-09-27
7
Medium Priority
?
237 Views
Last Modified: 2010-05-18
What is the Netscape Navigator's equivalent to the dynamic attribute clientWidth used in the Internet Explorer. I hava a table cell which is resized because of nonwrapable text. I need to determine the actual width of the cell displayed on the screen.

Thanks
0
Comment
Question by:msterjev
  • 4
  • 2
7 Comments
 
LVL 63

Expert Comment

by:Zvonko
ID: 12160104
Check for: innerWidth

0
 
LVL 3

Author Comment

by:msterjev
ID: 12160195
Doesn't work!
0
 
LVL 63

Expert Comment

by:Zvonko
ID: 12160641
Check for: offsetWidth
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 25

Expert Comment

by:devic
ID: 12163262
IE: document.body.clientWidth
NS: window.innerWidth
0
 
LVL 3

Author Comment

by:msterjev
ID: 12167070
I'm not talking about window. I want to get the table's cell actual width. I'm using direct DOM (document.getElementsById()) to retrieve particular cell (column). That cell has property width that I can retrieve with the method cell.getAttribute("width"). My question is: is there an attribute that represents the actual width of the cell on the screen (not the declared width in the HTML). In IE this is the read only attribute clientWidth.

Thanks
0
 
LVL 63

Accepted Solution

by:
Zvonko earned 500 total points
ID: 12167378
Did you check for:  cell.offsetWidth

0
 
LVL 63

Expert Comment

by:Zvonko
ID: 12168257
Thanks.
0

Featured Post

Upgrade your Question Security!

Add Premium security features to your question to ensure its privacy or anonymity. Learn more about your ability to control Question Security today.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A while back, I ran into a situation where I was trying to use the calculated columns feature in SharePoint 2013 to do some simple math using values in two lists. Between certain data types not being accessible, and also with trying to make a one to…
In this blog, we’ll look at how improvements to Percona XtraDB Cluster improved IST performance.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Suggested Courses

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question