Notifications of selection?

6 views
Skip to first unread message

James T. Savidge

unread,
May 6, 2011, 4:06:44 PM5/6/11
to WebVelocity
Greetings,

I’m trying to put together a query criteria selection page, and if I
have a multiSelect list, is there a way that I can be informed each
time a selection is made?

I want to fill a secondary selection list on the fly, based on the
selection(s) in the first list, but I’d rather that the user didn’t
have to push a button to get the second list populated.

Can this be done, and if so, are there any WebVelocity or Seaside
examples that I can use as a starting point?

James T. Savidge, [jsav...@texas.net], Friday, May 6, 2011
--

“Don’t worry Bob. Here’s what to do. ... Raise the Exception,
walkback, and nobody gets hurt.”

Michael Lucas-Smith

unread,
May 6, 2011, 5:27:35 PM5/6/11
to webve...@googlegroups.com
You'd need to use ajax to catch the onChange event on the list. I'm sure there are jQuery examples of exactly this in Seaside.

Cheers,
Michael

> --
> You received this message because you are subscribed to the Google Groups "WebVelocity" group.
> To post to this group, send email to webve...@googlegroups.com.
> To unsubscribe from this group, send email to webvelocity...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/webvelocity?hl=en.
>

James T. Savidge

unread,
May 6, 2011, 5:40:47 PM5/6/11
to webve...@googlegroups.com, Michael Lucas-Smith
Greetings Michael,

On 5/6/11 4:27 PM, Michael Lucas-Smith wrote:
> You'd need to use ajax to catch the onChange event on the list. I'm sure there are jQuery examples of exactly this in Seaside.

That�s what I figured as I continued my research, but I must not have it coded
correct yet because my breakpoint is not getting hit.

html form: [
html multiSelect
list: ... ;
labels: [ :each | each name ];
onChange: ( html jQuery ajax callback: [ :selection | selection
halt. ] ). ].

I�ll keep looking.

James T. Savidge, [jsav...@texas.net], Friday, May 6, 2011
--

�Don�t worry Bob. Here�s what to do. ... Raise the Exception, walkback, and
nobody gets hurt.�


> Cheers,
> Michael
>
> On May 6, 2011, at 1:06 PM, James T. Savidge wrote:
>
>> Greetings,
>>

>> I�m trying to put together a query criteria selection page, and if I


>> have a multiSelect list, is there a way that I can be informed each
>> time a selection is made?
>>
>> I want to fill a secondary selection list on the fly, based on the

>> selection(s) in the first list, but I�d rather that the user didn�t


>> have to push a button to get the second list populated.
>>
>> Can this be done, and if so, are there any WebVelocity or Seaside
>> examples that I can use as a starting point?
>>
>> James T. Savidge, [jsav...@texas.net], Friday, May 6, 2011
>> --
>>

>> �Don�t worry Bob. Here�s what to do. ... Raise the Exception,
>> walkback, and nobody gets hurt.�

Reply all
Reply to author
Forward
0 new messages