Element shortcuts for Waiter

Friday, November 21st, 2008 @ 4:53 pm | filed under: Code Releases, Manipulating the Dom

For those of you who haven’t seen my Waiter class, it basically automates the creating of an ajax spinner on a DOM element that’s being updated by an ajax request (or some other process). It’s integrated into Request.HTML so you can enable it with a simple option (useWaiter:true), but occasionally I want to use it outside of an ajax request. I just added two shortcuts to the Element class: wait and release. These basically let you do myElement.wait() to put a waiter over a DOM element. Just a little Friday love.

Here’s a demo in the wikitorial.

No TweetBacks yet. (Be the first to Tweet this post)

Comments are closed.