Home     |      Learn AJAX     |      Forum     |      Register     |      Submit Resource     |      Submit Article      |      Contact Us

Home Tutorials
 

Using 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 More...







 

 

Comments



Post Your Comment:

Members Please Login
Your Name:*
e-mail ID:(required for notification)*
Image Verification: 
 
 Subscribe    

Sponsored Links