[Seaside] onClick: Anywhere But Component

Lukas Renggli renggli at gmail.com
Fri Oct 2 06:40:35 UTC 2009


> 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


More information about the seaside mailing list