Re: onChange with WOPopUpButton
Re: onChange with WOPopUpButton
- Subject: Re: onChange with WOPopUpButton
- From: Mark Morris <email@hidden>
- Date: Sat, 6 Aug 2005 19:30:41 -0500
If you want to know which WOPopUpButton was changed, you could always
have the javascript you call onChange set a variable in a hidden
field, then check that in your one-and-only form's action method.
I've also implemented a reusable component that shows a pair of
WOPopUpButtons, one above the other, and the contents of the bottom
one are filtered based on the selection in the top, all using
javascript. If your list isn't too large (say under one or two
hundred items) you can try that path as well.
Regards,
Mark
On Aug 6, 2005, at 6:48 PM, Baiss Eric Magnusson wrote:
LD wrote:
...Now, instead of having numerous booleans in your code, you can
utilise the cool WOKeyValueConditional to show the relevant
component...
Not having used WOKeyValueConditional's I read your post with
interest but am not sure it will do what I need.
I have several WOPopUpButton's on a page and use the
<onChange = "javascript:this.form.submit();";>
to get to an action binding.
None of the WOPopUpButton's are inside WOConditionals and the only
way I've known how to handle the different WOPopUpButton's is to
put each of them inside their own WOForm so that the particular
action I want will occur with the particular form.
I try to read from your posting that I can somehow name a key-value
pair to tell me which of the WOPopUpButton's was acted on is a
single WOForm's action method.
Is their a way from one action of one form to know which of the
WOPopUpButton's is hit?
My <selection> binding of the WOPopUpButton's is set to a reference
variable of a different class for each of the WOPopUpButton's.
----
Baiss Eric Magnusson
<http://www.Track-Your-Finances.com>
<http://www.CascadeWebDesign.com>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40onpointsoftware.com
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden