Ⓙⓐⓚⓔ wrote:
> I'm with you! If you know your audience you don't need to do
> unobtrusive JavaScript.
> 
> But generally it's much cooler to make sites that work for alternate
> devices! sight impaired and physically challenged folks need
> information too! Not to mention the fools who have javascript turned
> off!

There's another great side effect of UOJS, even if you don't have to
care to be accessible: much improved maintainability. In the old days
you polluted your HTML with all the inline event handler attributes
(much like font tags and that sort of thing). If you had to change
things you had to go and change it in 12399 templates and had at least
forgotten one.

Now with a clean separation of structure and behavior which is one goal
of UOJS you simply have to change what is due to change in one line of JS:

$('a').click(function() {
     // change here once
});

As much as we try to separate presentation and structure (via CSS) the
same applies to behavior and structure (and of course behavior and
presentation).


-- Klaus


_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to