Tutorials Tutorials
Home
Tutorials
TutorialsUsing Events in Prototype
Ecytemedia has an article on how to use Events in Prototype. It dives into attaching functions to events using Event.observe along with some advanced javascript using anonymous functions and closures. Check out the following code block:
$$(this.list + " li").each(function(item) {
Event.observe(item, 'click', this.showTagName.bindAsEventListener(this));
}.bind(this));
Read this as "get all items for [...]
Read Next: iPhoto-like image resizing using Javascript
Related Topics
AjaxWith.com Offers
Sponsored Links
