Skip navigation
Currently Being Moderated

tooltip with dynamic data from cfm

Jun 11, 2008 9:45 AM

I'm having a hard time finding an example of creating a spry tooltip from dynamic data using a cfc or url. I need to create xml data from an SQL query and populate the tooltip.

<td style="width:100" id="#trigger" <cfif #QSpecInfoIndiv.Unknown_Status#> bgcolor="##FFFF33" </cfif>>
<a href="../individuals/index.cfm?fa=viewindiv&indivnum=#QSpecInfoIndiv. id#" target="_blank">#QSpecInfoIndiv.FirstName# #QSpecInfoIndiv.LastName#</a>
<cfif #QSpecInfoIndiv.Off_Limits_Flag#>
<font color="crimson">Off Limits</font>
</cfif>
<div id="container" class="tooltipContent">This is the tooltip content</div>
<script type="text/javascript">
var tooltip_one = new Spry.Widget.Tooltip("container", "#trigger", {closeOnTooltipLeave:true});
</script>
</td>
 
Replies

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points