Notifications of selection?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Notifications of selection?

James T. Savidge-2
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, [[hidden email]], Friday, May 6, 2011
--

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

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

Reply | Threaded
Open this post in threaded view
|

Re: Notifications of selection?

Michael Lucas-Smith-2
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

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, [[hidden email]], Friday, May 6, 2011
> --
>
> “Don’t worry Bob. Here’s what to do. ... Raise the Exception,
> walkback, and nobody gets hurt.”
>
> --
> You received this message because you are subscribed to the Google Groups "WebVelocity" group.
> To post to this group, send email to [hidden email].
> To unsubscribe from this group, send email to [hidden email].
> For more options, visit this group at http://groups.google.com/group/webvelocity?hl=en.
>

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

Reply | Threaded
Open this post in threaded view
|

Re: Notifications of selection?

James T. Savidge-3
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, [[hidden email]], 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, [[hidden email]], Friday, May 6, 2011
>> --
>>
>> “Don’t worry Bob. Here’s what to do. ... Raise the Exception,
>> walkback, and nobody gets hurt.”
>>
>> --
>> You received this message because you are subscribed to the Google Groups "WebVelocity" group.
>> To post to this group, send email to [hidden email].
>> To unsubscribe from this group, send email to [hidden email].
>> For more options, visit this group at http://groups.google.com/group/webvelocity?hl=en.
>>

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