Re: WOPupUpButton Question

David LeBer <[email protected]>
Newsgroups gmane.comp.web.webobjects.devel
Message-ID <[email protected]>
On 7-Jul-06, at 9:05 AM, Jeff Dunnett wrote:

> David,
>
> Well you are both right in a bit.
>
> On 6-Jul-06, at 5:35 PM, David LeBer wrote:
>
>>
>> On 6-Jul-06, at 5:14 PM, Joshua Marker wrote:
>>
>>> I think he wanted an update without submission, or automatic  
>>> submission. (I could be mistaken.)
>>>
>>> You could use javascript to submit the form onSelect.
>>
>> Ah crivens!
>>
>> You are probably correct Joshua. Jeff if that is the case, please  
>> disregard everything I said. :-)
>
> Maybe some background explaining the purpose of this application  
> will help make things clearer.  The purpose of the application is  
> to allow people to register for things like Conference or  
> University Class reunions.  Each conference/reunion can have any  
> number of time slots for session.  There is a component that allows  
> the registrant to book what session they wish to attend at each  
> time slot.  The problem I am having is that I want the application  
> to display the session information they select for a time slot.
>
> What I want it to do is when a item in the WOPopUpButton is  
> selected is that the Object they selected is added to a separate  
> list of some kind  (such as an NSArray) and then the information in  
> the object is updated on the screen.  I don't necessarily want to  
> submit the form.
>
> For example say one of the events the user can registered is for a  
> Blue Jay's Baseball game.  They select the baseball game from the  
> menu.  The baseball game is added to an NSArray called  
> eventsRegisteredFor (or something along those lines).   The the  
> information for that game such as the date of the game, the cost  
> for attendance and the team their play would appear on the screen.
>
> I am very sorry if I wasn't clear with my first email.  Thanks  
> David and Joshua for your assistance.

Well Jeff,

Unless you want all of the changes to happen client side in  
Javascript (shudder) you are going to have to let the server know  
about it. That either means submitting the form (either by the user  
clicking a button or as Joshua suggested through some JS bound to the  
popup) or, if you feel adventurous, you might want to investigate the  
Ajax framework in Project WONDER.

Talking about Ajax frameworks (nice segue eh?) "Lionel" posted a link  
to his framework on my blog <http://rlescot.free.fr/MyBlog/Sur%20le% 
20fil/C1D80B26-EA05-4ED8-8FF8-A226D0156E89.html> I haven't had a  
chance to look at in-depth but it looks interesting.

--
;david

--
David LeBer
Codeferous Software
'co-defer-ous' adj. producing or containing code
site:   http://www.codeferous.com
blog: http://david.codeferous.com
--
Toronto Area Cocoa / WebObjects developers group:
http://www.tacow.org

_______________________________________________
WebObjects-dev mailing list
[email protected]
http://www.omnigroup.com/mailman/listinfo/webobjects-dev
smime.p7s (application/pkcs7-signature, 2.3 KB) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.