using callbacks

Andy's Avatar


05 Oct, 2010 12:21 PM


I need to track the activation of the tooltip so I'm using the callback 'enter'. Each tooltip is generated from a span title attribute and each span has a non-unique ID, contained within a rel attribute.

How can I get this ID within the 'enter' callback to ajax back to PHP?

I would expect this to alert the contents of the rel, but it doesn't:

enter: function(){ alert($(this).attr('rel')); }

Any help is greatly appreciated, thanks


  1. 1 Posted by Shoaib Younus on 06 Oct, 2010 01:28 AM

    Shoaib Younus's Avatar

    This is a great tool with minimum of code,i loved it, I wanna call the restfull service from your code instead of ajax to get the results in jsonp format. Kindly tell me how i can do it. My email id is [email blocked],
    It would be a great help.
    Shoaib Younus

  2. 2 Posted by Jørgen on 06 Oct, 2010 12:29 PM

    Jørgen's Avatar

    Andy: I'm also looking for a solution to this

  3. 3 Posted by Bala on 04 Apr, 2011 08:25 PM

    Bala's Avatar

    I began using the plugin thinking that there would be a way to ajax load content. I think it is coming soon, until then I used a hack

    I have used a global variable to store a part of the id of the element to which the tool tip is to appear. The tipTip plugin uses a single div element for all tool tips, which makes this hack possible.

        var querydata;
  4. 4 Posted by Marcelo on 05 Apr, 2011 10:16 PM

    Marcelo's Avatar

    The problem seems to be here I think:
    ... function active_tiptip(){;


    I' not sure but maybe replacing "" by or opts.enter.apply(tiptip_content)
    might work

  5. 5 Posted by Tim on 03 May, 2011 03:53 PM

    Tim's Avatar

    another suggestion would be to add an additional call back at the end of the active_tiptip() method. Perhaps a 'show()`' callback method to allow users to modify the #tiptip_content on the fly with their own post processing.

  6. 6 Posted by Tim on 04 May, 2011 03:57 PM

    Tim's Avatar

    Attached my callback hack and another for a positional issue that I was having with elements that filled the viewport.

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:


Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac