Coldfusion Dynamic Tooltip?

Posted on 2005-04-26
Last Modified: 2013-12-24
Hello.  I have a page that has multiple member names (activity) spread across it.
I'd hoping to find a way to create dynamic tooltips ...

such that ... a hover over on specific text on my page would provide a popup (tooltip) next to that text item ... and the popup contained text generated by a dynamic coldfusion query.

In other words;

if a user hovered over <a href="blah.cfm">fred bloggs</a> ... a tooltip would popup infront (over, below or semi transparent?) this text ... and a query generated would place some realtime stats specific to that user on the tooltip (last their they visited etc).

Any ideas!? I've ONLY found a javascript tooltip solution ... and because it uses named tags <div id=blah> ... it would be messy - at best - to pre run the queries for each username on my page ... as the page loads ... and then assign a unique id to each ... etc.  

Hoped it might be possible to do something cleaner in CF!?
Question by:rcbuchanan
    LVL 22

    Expert Comment

    something like this?
    <a href="blah.cfm" title="something">fred bloggs</a>

    LVL 9

    Accepted Solution

    here is a javascript that I have used in the past
    it is very easy to put into action
    LVL 20

    Expert Comment

    To avoid JS or additional code, this is a bit basic and along the same idea of what pinaldave was suggesting,

    when additing a label to text links you use the "title='' " attribute, when using an image link... use the "alt=''" these will both give you the ability to display text when they are hovered over, nothing fancy though or trasparent.

    If you want dynamic text in either of these, try this...

    Your query up here...

    in your query you'd have to relate what was being display to what would be in the tooltip. So a good way would be if you had a tooltip for fred bloggs, your table would contain KeyID, ToolTipText, DisplayName and you would out put these two like the format below by their keyID values.

    <a href="blah.cfm" title="#myDynamicText#">fred bloggs</a>
    <IMG src="/blah/mygif.jpeg" alt="#myDynamicText#">

    CFDevHead, pinaldave... haven't abondoned my question, been working with the ideas, will post today :o) thanks


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    When deciding to adopt any help desk solutions many factors should be explored before taking decisions. This will change from business to another but in general there are some kind of rule of thumb. Here are some quick tips: Do we need only ticket…
    Most ColdFusion developers get confused between the CFSet, Duplicate, and Structcopy methods of copying a Structure, especially which one to use when. This Article will explain the differences in the approaches with examples; therefore, after readin…
    The purpose of this video is to demonstrate how to properly insert a Vimeo Video into a WordPress site or Blog. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following:…
    The purpose of this video is to demonstrate how to reset a WordPress password if you are locked out and cannot reset the password. A typical use would be if you cannot access the email to which WordPress would send the password recovery email to…

    794 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now