[WSG] Using valid JavaScript

2005-05-12 Thread Stevio
I am doing some work which involves resizing objects using JavaScript. 
However, properties like offsetHeight, innerHeight and clientHeight are not 
listed in the references here:
http://www.w3schools.com/

Does that mean the guide at W3Schools is not very good, or that these 
properties are not supported by all browsers?

Is there such a thing as valid, standards compliant JavaScript? Where can I 
find a reference guide of JavaScript properties that are supported across 
all browsers?

What I am specifically trying to do is find out things like the height of 
the body and the height of particular elements within the page. Any 
suggestions or ideas welcome.

Sorry if this is a bit off topic. (Is it?)
Stephen 


--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.11.9 - Release Date: 12/05/2005
**
The discussion list for  http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list  getting help
**


RE: [WSG] Using valid JavaScript

2005-05-12 Thread Patrick Lauke
 Stevio

 Where can I 
 find a reference guide of JavaScript properties that are 
 supported across 
 all browsers?

In an ideal world, standard DOM should be supported by most modern
browsers (although you may still come across some quirks in certain
browsers' implementations)

http://www.w3.org/TR/2003/REC-DOM-Level-2-HTML-20030109/html.html

You may have to do some doubling up of code, to cater for situations
in which a certain property or method is not supported.

P

Patrick H. Lauke
Webmaster / University of Salford
http://www.salford.ac.uk
**
The discussion list for  http://webstandardsgroup.org/

 See http://webstandardsgroup.org/mail/guidelines.cfm
 for some hints on posting to the list  getting help
**