The Artima Developer Community
Sponsored Link

Web Buzz Forum
JavaScript triggers

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Stuart Langridge

Posts: 2006
Nickname: aquarius
Registered: Sep, 2003

Stuart Langridge is a web, JavaScript, and Python hacker, and sometimes all three at once.
JavaScript triggers Posted: Feb 9, 2005 3:37 AM
Reply to this message Reply

This post originated from an RSS feed registered with Web Buzz by Stuart Langridge.
Original Post: JavaScript triggers
Feed Title: as days pass by
Feed URL: http://feeds.feedburner.com/kryogenix
Feed Description: scratched tallies on the prison wall
Latest Web Buzz Posts
Latest Web Buzz Posts by Stuart Langridge
Latest Posts From as days pass by

Advertisement

A List Apart has an article by PPK on JavaScript triggers where he explains his way of making JavaScript unobtrusive. He says, with a certain degree of accuracy, that using the class attribute as a hook is somewhat limiting. His approach, however, is to create brand new attributes, and then solve the “but it doesn’t validate!” problem by running your own validator. Paul over at paranoidfish expresses my view better than I could when he says “it also seems that the suggested solution is significantly more complicated and harder to maintain than the setup it was intended to improve upon“.
I’ve used non-standard attributes a few times, and sometimes there’s no way around them. When I do it, though, I’m conscious that it’s a hack, not a good approach. Perhaps in an XHTML world this sort of thing is more reasonable, but this ain’t an XHTML world—IE doesn’t interpret your XHTML as XML, for a start.

Read: JavaScript triggers

Topic: I am #1 in Google for... Previous Topic   Next Topic Topic: CarneyStudio.com

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use