Re: [WSG] OnClick - not valid

2006-09-26 Thread Micky Mourelo
Whether it validates or not, you should not hardcode events on the HTML. Try this: element.onclick = function() { // thing to be done on the click } Set this on the onload event. If you want to add various things on

RE: [WSG] OnClick - not valid

2006-09-26 Thread Kepler Gelotte
> http://82.110.105.29/crownstorage.com/professional-services.htm > > on the right there are some expandable titles using javascript. The page > is valid CSS and WAI but the 'OnClick' command fails to validate as > XHTML - is there another way? Welcome back from Portugal Max. I checked the HTML

Re: [WSG] OnClick - not valid

2006-09-26 Thread Kim Kruse
Use onclick instead... lowercase for xhtml :) Kim John 'Max' Maxwell skrev: Hi All, just working on a design - finishing up and going through validation etc - see: http://82.110.105.29/crownstorage.com/professional-services.htm on the right there are some expandable titles using javascript

Re: [WSG] OnClick - not valid

2006-09-26 Thread Roberto Gorjão
Olá Max, You have two different alternatives: 1- to use onclick instead of OnClick 2- to separate behaviour and structure, which is probably preferable. Try googling on this or this article from PPK: http://www.digital-web.com/articles/separating_behavior_and_structure_2/ HTH... Roberto -

Re: [WSG] OnClick - not valid

2006-09-26 Thread RobS
Hi, John 'Max' Maxwell wrote on 26-09-2006: > on the right there are some expandable titles using javascript. The > page is valid CSS and WAI but the 'OnClick' command fails to > validate as XHTML - is there another way? 'onclick' I believe... i.e. all lowercase. Best regards Rob

Re: [WSG] OnClick - not valid

2006-09-26 Thread Sheri Bigelow
Try onclick instead of onClick.On 9/26/06, John 'Max' Maxwell <[EMAIL PROTECTED]> wrote: Hi All,just working on a design - finishing up and going through validation etc- see: http://82.110.105.29/crownstorage.com/professional-services.htmon the right there are some expandable titles using _javascri

Re: [WSG] OnClick - not valid

2006-09-26 Thread David Dorward
On Tue, Sep 26, 2006 at 05:18:13PM +0100, John 'Max' Maxwell wrote: > the 'OnClick' command fails to validate as XHTML - is there another > way? XHTML has a lot of gotchas, and using it probably won't give you any advantages over HTML, while running the risk of causing you problems in places you