>  
> I think I have similar problem with action renderer: I would like to
> attach a javascript handler for my action button.
> Unfortunately the renderer seems to not allow to pass any additional
> attributes for the html button (like onclick attribute).
For this case (and a lot of others) behaviour.js may be very helpful.
Action buttons (after they're rendered) possibly have id's so it is
easy to just attach some javascript to them.
You don't have to modify anything in rendering code, zpt template etc.
Just write some JS code and attach it to the html element like you do with
css classes.

Behaviour.js page is: http://bennolan.com/behaviour/

-- 
Maciej Wisniowski
_______________________________________________
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users

Reply via email to