[thelist] javascript default event handlers, default events. [TIP]

Chris at globet.com Chris at globet.com
Thu Sep 1 02:50:25 CDT 2005


[..]

> > In my ignorance I'm not entirely sure how you are using the word 
> > "behaviour" here - perhaps you could supply a definition of 
> it as used 
> > in this context? I would have thought that it's fairly 
> simple to check 
> > if you have code or behaviour in your markup - removing the 
> reference 
> > to the external javascript file should cause no javascript 
> errors. If 
> > there are errors, then you have javascript or behaviour in your 
> > markup. Is this not so?
> 
> If there are errors, you've got a JavaScript enabled browser 
> with broken JavaScript.  A better test would be to disable 
> JavaScript and see if your site is still usable.  A 
> non-JavaScript client would ignore the references in the 
> event handlers.

In this test there is no concern for non-javascript enabled browsers.
The errors demonstrate that there is javascript behaviour (or
implementation) in the markup. Otherwise, removing the reference to the
external file would cause no errors. The latter case would constitute
seperation of behaviour (implementation) and presentation (markup).

> Do I really need to define behaviour?  I don't think I can!  
> Think of it as implementation, inline-style is implementation.  :-)

I suspect being able to define the terms one employs is central to
gaining any meaningful result from a discussion ;)

Chris Marsh
Web Developer
http://www.globet.com/
Tel: +44 20 8246 4804 Ext 828
Fax: +44 20 8246 4808

Any opinions expressed in this email are those of the individual and not
necessarily the Company. This message is intended for the use of the
individual or entity to which it is addressed and may contain
information that is confidential and privileged and exempt from
disclosure under applicable law. If the reader of this message is not
the intended recipient, you are hereby notified that any dissemination,
distribution, or copying of this communication is strictly prohibited.
If you have received this communication in error, please contact the
sender immediately and delete it from your system. 


More information about the thelist mailing list