Hi,
On 10/31/05, Raphael Bauduin
<rblists-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> when using hasClassName from the prototype library, I don''t get
> true/false returned, but an Object. It means the next line always
> evaluates to false:
> if (new
Element.hasClassName(form_field,''invalid_form_value''))
You don''t need the "new" operator here. (Think of
"hasClassName" as a
class method on Element.)
> PS: this might be somewhat off topic, but I didn''t find a better
place
> to ask. Is there a mailing list for prototype related questions?
Sure, this list is fine. There''s also the rails-spinoffs list:
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
Sam