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

Your preferred username that is used when logging in.

tooltip show only on trigger Created Feb 19, 2010

This thread is solved

Views: 1742     Replies: 4     Last reply Apr 1, 2010  
You must login first before you can use this feature

mickeyren

Posts: 13

Registered:
May 28, 2009

tooltip show only on trigger

Posted: Feb 19, 2010

is there any way, so the tooltip doesn't have any events attach to it, so i can have absolute control when to show the tooltip?

I wanted to show the tooltip only after an ajax event, so until then, i don't want the tooltip to keep on showing up automatically.

jpsimmons

Posts: 9

Registered:
Feb 25, 2010

» tooltip show only on trigger

Posted: Feb 25, 2010

Reply to: tooltip show only on trigger, from mickeyren
When you define the tooltip you can specify the events for the trigger element that hide and show the tip.

http://flowplayer.org/tools/tooltip.html#events

Example:



   var triggerElement = $('#tooltipTrigger');

   triggerElement.tooltip({
         events: {
              def: 'customOpenEvent, customCloseEvent'
         }

   })

   $.ajax({
      url: someurl,
      success: function() {
           triggerElement.trigger('customOpenEvent');
      }
   });

mickeyren

Posts: 13

Registered:
May 28, 2009

» » tooltip show only on trigger

Posted: Feb 25, 2010

Reply to: » tooltip show only on trigger, from jpsimmons
works! thanks! its been a while ive been waiting for a reply.

mickeyren

Posts: 13

Registered:
May 28, 2009

» » tooltip show only on trigger

Posted: Mar 30, 2010

Reply to: » tooltip show only on trigger, from jpsimmons
hmm looks like when the tooltips are used on form fields, it will ALWAYS show up on hover - otherwise please let me know if there is a way to still control the tooltips even on form fields.

thanks.

easton7000

Posts: 2

Registered:
Mar 23, 2010

» » » tooltip show only on trigger

Posted: Apr 1, 2010

Reply to: » » tooltip show only on trigger, from mickeyren
I'm having the same problem. It seems like the default trigger (mouseover) needs to be triggered first before the user-defined triggers for form input (focus or click) start to work.