[WSG] ECMAScript collapsible Menu System

2005-01-23 Thread Neerav
There has been lots written about separating content from presentation,
 and most developers see the benefit of this approach (cleaner, leaner 
markup; faster download speeds; easier maintainability, etc). There is 
also a fair amount written about separating behaviour from both content 
and presentation, but it tends to be practiced less than separation of 
content from presentation. HTML (or even XHTML) should be used for content
, CSS for presentation, and ECMAScript for behaviour.

All the time JavaScript was a Netscape proprietary technology, its use 
could not be endorsed by the W3C. In the middle of 1998, the European 
Computer Manufacturers Association (ECMA) created a public domain 
specification based on JavaScript, but using a standardised Document 
Object Model. The third edition of the ECMAScript Language Specification 
was published in December 1999; Standard ECMA-262.

To illustrate using a completely separate behavioural layer, I'll 
demonstrate a collapsible menu system. All of the examples are HTML, 
but work equally well as XHTML, even when served with the correct MIME type. 
read on at http://juicystudio.com/ecmascriptmenu.asp
--
Neerav Bhatt
http://www.bhatt.id.au
Web Development  IT consultancy
http://www.bhatt.id.au/blog/ - Ramblings Thoughts
http://www.bhatt.id.au/photos/
http://www.bookcrossing.com/mybookshelf/neerav
**
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] ECMAScript collapsible Menu System

2005-01-23 Thread David R
Neerav wrote:
read on at http://juicystudio.com/ecmascriptmenu.asp
Looking good. However just being the nit-pick I am, might I suggest you 
enclose the list headers in h2 tags?

...And I'm not enirely sure about the click opens, another closes the 
same system, compared to open another and the previous one closes

--
-David R
**
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] ECMAScript collapsible Menu System

2005-01-23 Thread Neerav
David
Perhaps you misunderstood, I just read this article and posted an 
excerpt + link. The congrats and/or brickbats should go to Gez Lemon of 
juicystudio.com :-)

Neerav Bhatt
http://www.bhatt.id.au
Web Development  IT consultancy
http://www.bhatt.id.au/blog/ - Ramblings Thoughts
http://www.bhatt.id.au/photos/
http://www.bookcrossing.com/mybookshelf/neerav
David R wrote:
Neerav wrote:
read on at http://juicystudio.com/ecmascriptmenu.asp
Looking good. However just being the nit-pick I am, might I suggest you 
enclose the list headers in h2 tags?

...And I'm not enirely sure about the click opens, another closes the 
same system, compared to open another and the previous one closes

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