Link to home
Start Free TrialLog in
Avatar of rcbuchanan
rcbuchanan

asked on

Coldfusion Dynamic Tooltip?

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!?
R.
Avatar of pinaldave
pinaldave
Flag of India image

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


ASKER CERTIFIED SOLUTION
Avatar of CFDevHead
CFDevHead

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of trailblazzyr55
trailblazzyr55

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.

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

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

Regards,
~trail