[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Binding an action to a radio button list
- Subject: Binding an action to a radio button list
- From: j-rochkind at northwestern.edu (Jonathan Rochkind)
- Date: Thu May 8 09:56:01 2003
- In-reply-to: <18c.19f92503.2beb7237@aol.com>
An action is something that gets invoked when the browser makes a request
to the server. This is why you normally bind the action to the thing that
triggers a request to the server. Like a hyperlink, or a form submit button.
Radio buttons don't normally trigger a request to the server. So there's no
way to bind an action to them, no. If you WANT a radio button change to
trigger a round trip to the server, I know you can do that with javascript,
although the exact js code to do this isn't in my head. In that case, you
would need to associate an action with that request. You can use
WOActionURL to generate a URL in the middle of your JS code, a URL that
will invoke an action.
Hope this helps,
--Jonathan
At 04:41 AM 5/8/2003 -0400, you wrote:
>I was wondering if it was possible to bind an action to an array of radio
>button lists as opposed to a button? If it is can someone give me a tip on
>how to do this?