• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: onChange with WOPopUpButton
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: onChange with WOPopUpButton


  • Subject: Re: onChange with WOPopUpButton
  • From: Mark Morris <email@hidden>
  • Date: Sat, 6 Aug 2005 19:58:27 -0500

Sure. I was on my way out the door, so I'll point you in the right direction for the first option, and check in a little later and see how it went.

This is quickly off the top of my head without testing, so please excuse any minor errors or omissions. ;-) You can just create a WOHiddenField in the one form that contains all your form elements, and give it a name ("whichPopUp" for example). Set the name attribute on your WOPopUpButtons. Then in your onChange for each WOPopUpButton, say something like

    "this.form.whichPopUp.value=this.name; this.form.submit();"

That way, whatever variable you've bound to the hidden field will contain the name you've given to the pop-up that was changed.

Good luck!

Mark


On Aug 6, 2005, at 7:35 PM, Darich Runyan/OMNI INFOSEC HQ wrote:


On Aug 6, 2005, at 8:30 PM, Mark Morris wrote:


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.


Would you happen to have some sample code that you could share, offline or on, for doing both of these. I had thought of each of these previously but was unable to find any documentation on how to integrate the javascript into the component.


Thanks,
Darich



_______________________________________________ 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
References: 
 >Re: onChange with WOPopUpButton (From: Baiss Eric Magnusson <email@hidden>)
 >Re: onChange with WOPopUpButton (From: Mark Morris <email@hidden>)
 >Re: onChange with WOPopUpButton (From: Darich Runyan/OMNI INFOSEC HQ <email@hidden>)

  • Prev by Date: Re: onChange with WOPopUpButton
  • Next by Date: Re: onChange with WOPopUpButton
  • Previous by thread: Re: onChange with WOPopUpButton
  • Next by thread: Re: onChange with WOPopUpButton
  • Index(es):
    • Date
    • Thread