Cool. Edward++<br><br><div><span class="gmail_quote">On 8/14/07, <b class="gmail_sendername">Edward Funnekotter</b> <<a href="mailto:efunneko@gmail.com">efunneko@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi all,<br><br>Just letting you know that the Jifty HEAD now contains support for the following triggers on most form fields:<br><br>onclick onchange ondblclick onmousedown onmouseup onmouseover onmousemove onmouseout onfocus onblur onkeypress onkeydown onkeyup onselect
<br><br>The rules are pretty much the same as what you would have previously used for onclick within a link or button.<br><br>E.g. The following will submit an action and refresh the region when a Select item is changed by the user.
<br><br><span style="font-family: courier new,monospace;"><% $action->form_field('select_item', render_as => 'Select',</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">
onchange => {submit => $action,</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> refresh_self => 1,
</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> args => { show_fields => 1,</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> } </span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> } )%>
</span><br style="font-family: courier new,monospace;"><br><br>Let me know if there are any problems.<br><br>Enjoy,<br><span class="sg">Edward<br>
</span><br>_______________________________________________<br>jifty-devel mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:jifty-devel@lists.jifty.org">jifty-devel@lists.jifty.org</a>
<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://lists.jifty.org/cgi-bin/mailman/listinfo/jifty-devel" target="_blank">http://lists.jifty.org/cgi-bin/mailman/listinfo/jifty-devel</a><br><br></blockquote>
</div><br>