[Seaside] onClick: Anywhere But Component

dirk newbold dirkdirk at gmail.com
Sun Oct 4 03:16:58 UTC 2009


Thanks Lukas

On Fri, Oct 2, 2009 at 4:40 PM, Lukas Renggli <renggli at gmail.com> wrote:
>> This all went fine, except for one final characteristic:
>>  - with the standard select if you click the arrow the dropdown box
>> appears but if you then decide not to select anything and instead just
>> click some dead part of the page the dropdown box disappears.
>>
>> How can I achieve this characteristic?
>
> You register an onClick even on the root of the document. If the
> dropdown box is open and if the event has not been handled you close
> it.
>
>   http://www.quirksmode.org/js/events_order.html
>
> Lukas
>
> --
> Lukas Renggli
> http://www.lukas-renggli.ch
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>


More information about the seaside mailing list