[Seaside] OnClick on an "html select" not working for me in
Seaside 3.0
Jon Paynter
kittle31 at gmail.com
Mon Sep 12 06:35:07 UTC 2011
This looks similar to some strangeness I saw.
try putting the script first in your cascade like so:
(html select)
id: 'passedList';
onClick: ((html scriptaculous updater)
id: 'foo';
triggerFormElement: 'passedList';
callback: [self openStock]);
list: listToDisplay;
selected: (listToDisplay at: 1).
On Sun, Sep 11, 2011 at 5:50 PM, Squeaker <squeakman at gmail.com> wrote:
> Greetings,
>
> I am attempting to display a list and trigger a callback onClick when the
> user clicks on an item in the list.
>
> The list is displayed correctly and when the user clicks an item I get a
> debugger saying:
>
> 'This block expects 0 argument(s) but is invoked with 1 argument(s)'
>
> I had similar code to this working in Seaside 2.8 but it is failing in
> Seaside 3.0.
>
> renderContentOn: html
> | listToDisplay |
>
> listToDisplay := OrderedCollection new.
> listToDisplay add: 'AAPL'; add: 'INTC'; add: 'GOOG'.
>
> (html div)
> id: 'passedPanel';
> with:
> [(html div)
> id: 'passed';
> with:
> [(html select)
> id: 'passedList';
> list: listToDisplay;
> selected: (listToDisplay at: 1);
> onClick: ((html scriptaculous updater)
> id: 'foo';
> triggerFormElement: 'passedList';
> callback: [self openStock])].
>
> "this div is a dummy div for the click to work
> - its a kludge"
> html div id: 'foo'.
> ]
>
> Any help would be appreciated.
>
> Thanks,
> Frank
>
> ______________________________**_________________
> seaside mailing list
> seaside at lists.**squeakfoundation.org <seaside at lists.squeakfoundation.org>
> http://lists.squeakfoundation.**org/cgi-bin/mailman/listinfo/**seaside<http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20110911/ca907d9e/attachment.htm
More information about the seaside
mailing list