You will recieve your password to this address. Address is not made public.

Your preferred username that is used when logging in.

Suggestion for interactive tooltips Created Jul 12, 2009

This thread is solved

Views: 3192     Replies: 4     Last reply Dec 28, 2010  
You must login first before you can use this feature

twiinz

Posts: 2

Registered:
Jul 12, 2009

Suggestion for interactive tooltips

Posted: Jul 12, 2009

I find myself regularly wanting to have an interactive tooltip that appears after clicking a trigger somewhere around that trigger, that's the case with datepickers, colorpickers, bookmark buttons, etc.

Most of the tools like datepickers usually provide a way to do that, but they all do it differently and all feel different to the user, so I find myself disabling this feature, wrapping the widget in a div and implementing the show/hide myself so that all my widgets behave the same.

Basically it's nothing else than an interactive tooltip and the tooltip provided by jquery tools provides most of what is needed.

The only issue is that the show/hide logic is hardcoded, (mouseover/mouseout on elements, focus/blur on inputs).

That'd be great if it was configurable.

When you want your tooltip to be an interactive widget what you usually need is that it appears when the trigger is "clicked" and that it disappears when a click is performed anywhere outside of the widget.

Note that with the current system when the trigger is a form element and the tooltip is interactive, the simple fact of clicking somewhere (even inside the tooltip) is going to blur the trigger and close the tooltip.

To wrap it up, this tooltip tool is awesome, very flexible when it comes to styling; adding a bit more control over the show/hide logic would make it ridiculously good for all sort of things.

One more little thing, if instead of targeting ["input, textarea"] you targeted ":input" that would allow the focus/blur thing to work on select as well.

Tero
Author of jQuery Tools and this website + JavaScript developer of Flowplayer.

Posts: 1867

Registered:
Nov 16, 2007

» Suggestion for interactive tooltips

Posted: Aug 26, 2009

Reply to: Suggestion for interactive tooltips, from twiinz
Your wishes will become true on jQuery Tools 1.1. which will be out next week.