[jifty-devel] Support for many javascript triggers (onchange, onmouseover, etc.) committed

Edward Funnekotter efunneko at gmail.com
Tue Aug 14 13:25:42 EDT 2007


Hi all,

Just letting you know that the Jifty HEAD now contains support for the
following triggers on most form fields:

onclick onchange ondblclick onmousedown onmouseup onmouseover onmousemove
onmouseout onfocus onblur onkeypress onkeydown onkeyup onselect

The rules are pretty much the same as what you would have previously used
for onclick within a link or button.

E.g.  The following will submit an action and refresh the region when a
Select item is changed by the user.

<% $action->form_field('select_item', render_as => 'Select',
                         onchange => {submit => $action,
                                      refresh_self => 1,
                                      args => { show_fields => 1,
                                              }
                                     } )%>


Let me know if there are any problems.

Enjoy,
Edward
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.bestpractical.com/pipermail/jifty-devel/attachments/20070814/1695482f/attachment.htm


More information about the jifty-devel mailing list