Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
getting jquery tooltip to display next to trigger
Old 05-26-2011, 04:38 PM getting jquery tooltip to display next to trigger
seannarae's Avatar
Skilled Talker

Posts: 65
Location: san francisco, ca
Trades: 0
I am using the jQuery Tooltip plugin and am having difficulty getting the tooltips to display adjacent to (offset from) the element that triggers it.

Link to the plugin:
http://docs.jquery.com/Plugins/Tooltip

Link to my demo page:
http://www.edgehillproductions.com/test/tooltip_demo/

I'm using the bodyHandler argument to return a unique ID for a DIV that contains the markup for that tooltip's contents.

To keep my document clean, i am placing all of the DIV containers for the tooltips grouped together at the bottom of the document.

As you can see in the demo page, the tooltips are working: each triggering element does display its appropriate tooltip.

However the issue is that based upon where in the document i've located the tooltip containers, THATS where they're displaying when triggered.

How can i get each tooltip container to display adjacent to (offset from) the element that triggered it?

Thanks for reading
seannarae is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 05-27-2011, 09:49 PM Re: getting jquery tooltip to display next to trigger
mgraphic's Avatar
Truth Seeker

Latest Blog Post:
JAMISONTUNES
Posts: 2,918
Name: Keith Marshall
Location: Connecticut
Trades: 0
It may be required to have a title attribute in the element. Try adding one dynamically using:

$("#tt_link").attr("title", "").tooltip({. . .});
__________________

<mgraphic /> - I don't have a solution but I admire the problem.
mgraphic is offline
Reply With Quote
View Public Profile
 
Old 05-28-2011, 03:08 PM Re: getting jquery tooltip to display next to trigger
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,383
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Change the positioning of the messages to the mouse pointer X & Y co-ordinates.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 06-03-2011, 04:04 PM Re: getting jquery tooltip to display next to trigger
seannarae's Avatar
Skilled Talker

Posts: 65
Location: san francisco, ca
Trades: 0
"Change the positioning of the messages to the mouse pointer X & Y co-ordinates."

I am not clear just how to do this. I've poured over the jquery.tooltip.js file, as well as the documentation for the plugin, but cannot locate anything regarding position of the mouse pointer coordinates.

That is, based on the documentation for the .tooltip () plugin, adding "track: true" should achieve a tooltip that tracks with the mouse/cursor coordinates.

I've posted the same question to the jQuery Forums, thinking that would generate response from those who've had the same issue, but have yet to receive a response.

Thanks again fro reading. Any assistance appreciated.
seannarae is offline
Reply With Quote
View Public Profile
 
Old 06-03-2011, 05:36 PM Re: getting jquery tooltip to display next to trigger
mgraphic's Avatar
Truth Seeker

Latest Blog Post:
JAMISONTUNES
Posts: 2,918
Name: Keith Marshall
Location: Connecticut
Trades: 0
Did my advice of adding a title attribute not work?
__________________

<mgraphic /> - I don't have a solution but I admire the problem.
mgraphic is offline
Reply With Quote
View Public Profile
 
Old 06-03-2011, 05:54 PM Re: getting jquery tooltip to display next to trigger
seannarae's Avatar
Skilled Talker

Posts: 65
Location: san francisco, ca
Trades: 0
@mgraphic: Thanks for your suggestion. And apologies, for not responding directly, but no: applying your suggestion didnt work either.

I bumped the companion post in the jQuery Forum and got an answer that seems to work

THIS ISSUE IS RESOLVED

I have updated my DEMO page. I am not quite sure i understand, but will try to explain.

The issue was that in my CSS, i was missing:
#tooltip { position: absolute; z-index: 3000; }

When i add this, BANG: my tooltips track with mouse cursor. Whats confusing is that in my markup, there is no instance of a container with id="tooltip".

I think whats happening is that when the .tooltip () is called, its generating the container with id="tooltip" into which its displaying (via bodyHandler argument) the contents of another div. See Line #40 within jquery.tooltip.js.

Thanks for all y'all's attention and help on this. Happy Friday.
seannarae is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to getting jquery tooltip to display next to trigger
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.35968 seconds with 12 queries