Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi,
I use the following function in my Tipsy, however the output text is "undefined". please help me!
Thanks,
Kourosh
Comment | File | Size | Author |
---|---|---|---|
#15 | 2-13-2013 5-15-03 PM.png | 2.59 KB | NAGARAJ |
Capture.JPG | 11.23 KB | kourosh.a |
Comments
Comment #1
kourosh.a CreditAttribution: kourosh.a commentedthis is the function is use:
function() { return 'My content'; }
Comment #2
Mohammed J. RazemThis is caused by
eval()
function inside the Tipsy-Drupal JS wrapper.A quick fix for this, is to implement the Tipsy tooltip for your rule inside a JS file in your theme or module, instead of defining it from the admin UI.
Example:
Comment #3
kourosh.a CreditAttribution: kourosh.a commentedHi,
Thanks for your reply. I just tried that. But no luck! I can't get it work. Nothing appears...
Comment #4
Michsk CreditAttribution: Michsk commentedIf we need to create custom js we don't need this module... subscribing
Comment #5
Traphic CreditAttribution: Traphic commentedI have the same problem with all custom tooltips, apart from the forms. It kind of defeats the object to add code to a js file.
I got it working by using 'title' (without quotes) in the 'Tooltip content:' box in Tipsy UI, and using title="custom content" as an html attribute where I want the tooltip to display, but I would rather manage it all in the admin panel and use html content instead of simple text.
Is there a fix that can be applied to the module?
Comment #6
Michsk CreditAttribution: Michsk commentedI can't get this running. Is there anyone who can help me out?
So i have a view which returns some avatars, and the name. The usrname is in .ref-info. Now when we hover over li.ref-user i want to show ref-info in the tooltip.
Comment #7
Michsk CreditAttribution: Michsk commentedDoesn't do it either:
And yes this code is in a custom .js file and not trough the admin UI.
Comment #8
muschpusch CreditAttribution: muschpusch commented@Mohammed J. Razem: the module is kind of useless at the moment could you explain a little more why you think that it doesn't work maybe i can provide a patch....
Comment #9
Michsk CreditAttribution: Michsk commentedPatches are always welcome, for now i must say i just dropped the module and downloaded the tooltip script and call it trough a own .js file. Just like described here.
Comment #10
techninja CreditAttribution: techninja commentedIf anyone is coming from views_tooltip with this problem, make sure and go back to the tipsy settings page and change the title selector to child (not attribute) and make sure it's ".tooltip-content" with a period at the beggining.
Comment #11
boabjohn CreditAttribution: boabjohn commentedHey @techninja: you're a champion!
Comment #12
NAGARAJ CreditAttribution: NAGARAJ commentedi couldn't get it please help me
Comment #13
boabjohn CreditAttribution: boabjohn commented@nagaraj : On the tipsy setting spage there is a form element where you can enter a css selector name.
It is easy to forget to add the "." at the beginning of the class name...so make sure it reads:
.tooltip-content
Does that help? If not, please explain more about where you are getting confused.
Cheers.
Comment #14
NAGARAJ CreditAttribution: NAGARAJ commentedThank you.. boabjohn for asking..
I am beginner and my problem is i got the tipsy tool tip in the drupal forms and while i create a css selectors such as .tooltip-content and add html attribute such as
but when i using the page
it shows undefined... Please help... me..
Comment #15
NAGARAJ CreditAttribution: NAGARAJ commentedComment #16
boabjohn CreditAttribution: boabjohn commentedHi @nagaraj,
I have not looked at this in awhile, but maybe try this:
1. Remove your custom 'tooltip-content' style definition from your css/theme
2. Flush theme cache and reload page
3. Check the markup on the page with FireBug...see if there is a class definition already
This would be provided by the Tipsy module.
Maybe the current problem is that you're confusing the set-up by creating your own class?
Comment #17
NAGARAJ CreditAttribution: NAGARAJ commentedThank you boabjohn i got it work now......thank you very much
Comment #18
francula CreditAttribution: francula commentedHi,
i did all described steps but still. I got the undefinde tooltip.
When i check the element with firebug there is no class definition there.
What can i do.
Regards
Comment #19
kasalla CreditAttribution: kasalla commentedNot sure, but I think, the element to display in a tooltip has to be wrapped by the "Hover"-selector.
Like this which worked for me:
Following code didn´t work:
I don´t know, if this is a bug.