Solved

Netscape Navigator clientWidth property

Posted on 2004-09-27
7
210 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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 125 total points
ID: 12167378
Did you check for:  cell.offsetWidth

0
 
LVL 63

Expert Comment

by:Zvonko
ID: 12168257
Thanks.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
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…

914 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now