[jifty-devel] JS onclick action for radio buttons

Jesse Vincent jesse at bestpractical.com
Fri Jun 2 00:11:15 EDT 2006




On Thu, Jun 01, 2006 at 05:11:51PM -0400, Sean E. Millichamp wrote:
> I noticed that there wasn't any supported JS onclick action for radio
> buttons.  I thought it might be useful, for example, to use an onclick
> attached to a radio button to update a page region in a form based on
> the value clicked (to show only options relevant based on the radio's
> selection).
> 
> The attached patch sets an argument named 'formvalue' to the value
> specified for each radio button which can then be accessed in the page
> region.
> 
> It seemed kind of like a hackish patch to me though and not very
> Jifty-like and I decided not to commit it.  I'd like to get some
> feedback on it first.

I guess my real question is "how would you like to use this"?

What would your code look like? What would your _ideal_ app code look
like?



More information about the jifty-devel mailing list