Login Register

How can I connect a tooltip to a gfx image?

Hey, I looked at the demos on the nightly build, for the tooltip and the gfx images. I have the following code on my website. I pass in several variables, the myDetails, myDueDate, myProjectID, myLinkPage are what I want the text of the tooltip to be. I want the tooltip to appear when the user does a mouseover on the circle. I was wondering is there a way I can give an id to the circle to set this up. Also how would I set the text for the tooltips to be the vars that I am passing in? I couldn't find an example like that.

function makeGreenCircles(desk, myDetails, myDueDate, myProjectID, myLinkPage, myColor)
                        {
                                var circle = { cx: 55, cy: 405, r: 60 };
                                        .setFill([0, 255, 0, 1.0])
                                        .setStroke({color: myColor, width: 1, cap: "butt", join: 4})
                                       
                               
                                if(browserName == "Microsoft Internet Explorer")
                                {
                                       
                                }
                                else
                                {
                                        var node = document.getElementById(['circle' + myID]);
                                        node.setAttribute('persists', 'true');
                                        node.setAttribute('attachId', 'warn1');
                                        node.setAttribute('dojoType', 'demo.Tooltip');
                                }
                                myID++;
                        }

Take a look at

Take a look at dojox/charting/action2d/Tooltip.js.

hmm, the directory you

hmm, the directory you mentioned isn't there in dojo 1.1.1, what version are you using?

It's in the trunk.

Sorry, I haven't used any

Sorry, I haven't used any kind of version control in a while, if it's in the trunk does that mean that it will be included in the next release of dojo, it's just not included in the latest release? Also is there any way I can copy text from the trac, without getting all the numbers?

It will be included in the

It will be included in the next release of Dojo.

You can download a file from Trac by going to "Download in other formats:" section available at the bottom of every page.