The Artima Developer Community
Sponsored Link

Web Buzz Forum
Yahoo! UI Library: Event Object

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
Douglas Clifton

Posts: 861
Nickname: dwclifton
Registered: May, 2005

Douglas Clifton is a freelance Web programmer and writer
Yahoo! UI Library: Event Object Posted: Mar 1, 2006 9:43 PM
Reply to this message Reply

This post originated from an RSS feed registered with Web Buzz by Douglas Clifton.
Original Post: Yahoo! UI Library: Event Object
Feed Title: blogZero
Feed URL: http://loadaveragezero.com/app/s9y/index.php?/feeds/index.rss1
Feed Description: Web Development News, Culture and Opinion
Latest Web Buzz Posts
Latest Web Buzz Posts by Douglas Clifton
Latest Posts From blogZero

Advertisement

dustindiaz Always on the lookout for more than just code libraries and the basic documentation (if any!) that generally comes with them, I came across a very interesting piece from Dustin Diaz today. In Forget addEvent, use Yahoo!’s Event Utility, he spends some time really picking apart the Yahoo! User Interface Library: Event Utility.

These JavaScript libraries tend to be large (the Yahoo! namespace source file is only 1.5k, but event.js weighs in at a substantial 30k), so Dustin takes the time to strip extraneous whitespace from the source and then wraps the code in PHP, which by using ob_start() and the gzip callback handler, he is able to compress the code down to only 2k. And before you go crying "IE doesn't handle compressed JavaScript well or cache it!", he also takes care of sending the correct HTTP headers to do just that.

According to the Yahoo! API documentation (which is excellent by the way, ignore the crack at the top of this post):

The Event Utility facilitates the creation of event-driven applications in the browser by giving you a simplified interface for subscribing to DOM events and for examining properties of the browser's Event object.

What Dustin is interested in highlighting are these features:

Along the way he drops in some great code examples and wraps up with the obligatory sample page to show off what the code can do. Dustin is very excited about this library, and even asserts dropping any of the various incarnations of addEvent() in favor of the Yahoo! Event library. Which need not concern you, since it is released under an open-source BSD license.

Nice work, but take it easy on the "dope," "tight," "sexy" and "sweet" next time, will ya?

Read: Yahoo! UI Library: Event Object

Topic: PRO::PHP Interview With Andi Previous Topic   Next Topic Topic: Google Code: Web Authoring Statistics

Sponsored Links



Google
  Web Artima.com   

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