I'd like to suggest that you implement some way to "cancel" out of the
interface. I would do the following:
 - Add an event watcher for the document body for clicks. If the user clicks
somewhere other than the elements in your picker, hide it.
 - Add a similar event that watches keystrokes; if they hit the escape key,
hide it.
 - Consider finding some way to add a tiny "x" in the interface that will
close it (for people who don't try either of the above)

Was thinking about the name of the class and for some reason, the phrase
"HoverFlow" keeps coming to mind. Maybe because it sounds like "CoverFlow"
which is another popular interface meme. Just thought I'd share. I don't
really have a preference about the name.

-a

On Sun, Oct 12, 2008 at 8:06 PM, SilverTab <
[EMAIL PROTECTED]<[EMAIL PROTECTED]>
> wrote:

>
> That's good to know! Guess I'll have to change it in my 10+ other
> classes hehe... I'm used to coding pure javascript so... I guess i
> don't always take full advantage of using a framework!
>
>
> On Oct 12, 4:02 pm, Tom Occhino <[EMAIL 
> PROTECTED]<http://n2.nabble.com/user/SendEmail.jtp?type=node&node=1324253&i=0>>
> wrote:
>
> > Check the code inside MooTools SilverTab.  We use this technique all
> > over.  (also, FYI, that's the whole point of the $ function, to be
> > able to pass a string id, or an element to be extended)
> >
> > this.element = $(element);
> >
> > On Oct 12, 2008, at 2:50 PM, Rajeev J Sebastian wrote:
> >
> >
> >
> > > On Sun, Oct 12, 2008 at 11:47 PM, SilverTab <[EMAIL 
> > > PROTECTED]<http://n2.nabble.com/user/SendEmail.jtp?type=node&node=1324253&i=1>>
> wrote:
> >
> > >> Rajeev: Would this work if the argument (el) is the dom element
> > >> itself
> > >> and not its id? I was only doing it that way so that the user can
> > >> pass
> > >> either the element's id or the element itself...
> >
> > > Yes, it will work.
> >
> > > Regards
> > > Rajeev J Sebastian
>
>
> ------------------------------
>  View message @
> http://n2.nabble.com/Sweet-time-picker-plugin-tp1306377p1324253.html
> To start a new topic under MooTools Users, email
> [EMAIL PROTECTED]<[EMAIL PROTECTED]>
> To unsubscribe from MooTools Users, click here< (link removed) >.
>
>
>


-----
The MooTools Tutorial:  http://www.mootorial.com www.mootorial.com 
CNET Clientside:  http://clientside.cnet.com clientside.cnet.com 
-- 
View this message in context: 
http://n2.nabble.com/Sweet-time-picker-plugin-tp1306377p1329364.html
Sent from the MooTools Users mailing list archive at Nabble.com.

Reply via email to