Matt Snider JavaScript Resource

Understanding JavaScript and Frameworks

Tuesday, June 24, 2008

News: Unobtrusive JavaScript Presentation and YUI Widget HowTo

PPK - An Event Apart Boston Slides

Peter Paul Koch gave a great presentation at the “An Event Apart” Boston conference about unobtrusive JavaScript. He has provided us a link to his slide from the event on his blog. The slides take less than 10 minutes to browse through and offer a strong argument for unobtrusive JavaScript. I firmly believe that JavaScript should only be use unobtrusively and hope it becomes a standard soon.

Building Your Own Widget Library with YUI

The YUI team has written a collection of articles that educate developers on how best to write a YUI widget. I recommend reading these article, not only if you are a new YUI user, but also if you have been following the project for a long time, because a lot has changed, and reading these articles help one write better more efficient code. Read the YUI article here.

posted by Matt Snider at 10:44 pm  

1 Comment »

  1. “I firmly believe that JavaScript should only be use unobtrusively and hope it becomes a standard soon.”

    I hope they never actually remove inline event handlers like “style” and “onclick” but I agree we should separate the three layers as much as is practical.

    The current problem is the browser doesn’t provide all the tools needed to write exclusively unobtrusively. “The window.onload problem” is a still a problem until some new concepts are added to the DOM and/or until IE supports event capture. Even then the window.onload problem makes the programming difficult because the style of widget programming is different before the page has finished loading. After the page has finished loading a more efficient programming style can be used as all the elements are available and not redrawing as things arrive to the browser.

    Even unobtrusive JavaScript is not all roses.

    Comment by Peter Michaux — June 25, 2008 @ 8:58 am

RSS feed for comments on this post. TrackBack URI

Leave a comment

Powered by WordPress