| |
Low Pro |
> alert("Hello World!"); event.preventDefault(); > 'p.hide_myself:click': function() { jQuery(function($) { > Chris from Err the blog, mentioned that he was excited about seeing LowPro > I'm personally really excited, especially with the new Merb release coming $('input').attach(DatePicker); could be done as: $('input').attachDatePicker(); However, I think behavior classes have advantages over this method on Cheers, Dan -- aim: danwrong123
> 'a.alert_hello_world:click': function(event){
> },
> // this refers to the paragraph being clicked
> $(this).hide();
> }
> });
what you already get:
$('div.product').click(function() { ..... });
$('a').click(function() { ..... });
across the behavior classes part.
> being ported to JQuery, he just whished you were using click instead of
> onclick.
part. We need to differenciate which methods are intended to catch
events and which are just normal methods. If we do this then behavior
classes can catch custom events as well which is a very good thing.
> up, I believe JQuery will grow in the Ruby community. I'll do my best to try
> to see if I can come up with behaviors.
that what behavior classes do can and is currently done using plugins:
accounts that they are actual classes that you can inherit from and
augment yourself. The only way you can customise plugins is to crack
open the source and change it which is never ideal.
Dan Webb
http://www.danwebb.net
skype: danwrong