• 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: Trouble with Popup Button form
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Trouble with Popup Button form


  • Subject: Re: Trouble with Popup Button form
  • From: Mark Morris <email@hidden>
  • Date: Tue, 17 Apr 2007 18:15:13 -0500

Hello Kevin,

Yes, your bindings are a little confused.  It sounds like aClub should be bound to item, if aClub.name is the displayString.  Here "item" is each object from the "list" as it's displayed in the pop-up button, which means its value is getting changed as the page is displayed.  You need another variable to hold the "selection" object, which is set when the form is submitted.

Hope this helps.

Regards,
Mark

On Apr 17, 2007, at 5:57 PM, Kevin Windham wrote:

I have a page that contains a popup button and a text field. The popup button lists club names and the text field lists the club website.

I have a variable "aClub" bound to the selection of the popup and aClub.name is the displayString. I have aClub.website bound to the text field. I made an onchange binding and use a _javascript_ to call the changeClub method. This method simply returns the same page.

What I was hoping would happen is for the popup to display the name of the just selected club, and the textfield to display the just selected clubs website. However, what happens is the name is displayed, but I have no website displayed.

If I bind a different variable selectedClub to the selection, then I can get the website to display, but my popup club.name doesn't display.

So what I have now is kind of kludgey. I am setting two variables to the same thing before loading the page again.

nextPage.aClub = selectedClub;
nextPage.selectedClub = selectedClub;

Can someone tell me what I am missing here. I think I am just not grasping the Popup.

Thanks,
Kevin

 _______________________________________________
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: 
 >Trouble with Popup Button form (From: Kevin Windham <email@hidden>)

  • Prev by Date: Re: [Announce] WOWODC 2007
  • Next by Date: Re: [Announce] WOWODC 2007
  • Previous by thread: Trouble with Popup Button form
  • Next by thread: WOResponse and setContentStream
  • Index(es):
    • Date
    • Thread