• 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: Invoking an action with a popup button
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Invoking an action with a popup button


  • Subject: Re: Invoking an action with a popup button
  • From: Chris Pavicich <email@hidden>
  • Date: Mon, 30 Jun 2003 22:30:57 -0400

Hi Randall:

We do this pretty commonly in the app that I am working on.... you need to bind the first popup's onChange action
to a script that will populate the second buttons list. If you get really fancy, you can have multiple popups modify each
others state.


If you need example code, please drop a line....

CMP



On Monday, June 30, 2003, at 21:23, Alan Ward wrote:

Can't remember exactly how I did it but I did this some time ago. Basically you
use javascript to do an onClick action that submits the form. Hopefully that'll be
enough for you to find the exact details somewhere.


Alan


On Monday, June 30, 2003, at 05:58 PM, Randall Cayford wrote:

I am guessing this is ridiculously simple but I am new to webobjects and am having a terrible time trying to figure out where various things link together.

I have a web application with two popup buttons. The first one shows a list of bus routes. The second one shows a list of stops along that route. I would like the set list of items in the second button to reflect the selection of route in the first button. So when the user selects a route from the first button, something triggers a refresh so the selection gets made and assigned to the variable ("route") which I use to provide values for the second list of stops.

If I wrap the WOPopupButton in a WOForm with a submit button which invokes a do nothing action and returns the same page, everything works. It seems like there ought to be a way to have the action invoked simply by selecting from the first popup, however. But I am at a loss for how to do that.

Any help would be appreciated.

Randall
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: Invoking an action with a popup button (From: Alan Ward <email@hidden>)

  • Prev by Date: Re: Invoking an action with a popup button
  • Next by Date: Dire web service help...
  • Previous by thread: Re: Invoking an action with a popup button
  • Next by thread: Dire web service help...
  • Index(es):
    • Date
    • Thread