I have a form with dynamic <td>s like;
Firstname John Lastname Adams DOB 1701/12/02
Tom Jefferson 1724/04/28
John McCain 1947/07/04
When I move the mouse over a name I get a pop up that tells me their phone numbers and (someday) a list of the last 10 conversation I had with them.
I'm using javascript I got from
www.ebrueggeman.com and it's clean and simple. But the line of code to use it is;
<cfset tthint = "Now is the time for all good men to come to the aid of their ocuntry.<br> This should be the next line." />
<td style="width:100" ><a href="#request.controlPath
#individua
ls/index.c
fm?fa=view
indiv&indi
vnum=#QSpe
cInfoIndiv
.id#" target="_blank" onMouseOver="return tooltip('#tthint#','', 'width:200, border:1, fontsize:10, titlefontsize:16, bordercolor:##FF0000, textcolor:##FF0000');" onmouseout="return hideTip();">#QSpecInfoIndi
v.FirstNam
e# #QSpecInfoIndiv.LastName# #QSpecInfoIndiv.DOB#</a>
I've hard coded tthint to test the use of <br> embedded and that works fine. I just don't know how to dynamically load tthint on the fly.
Another version of my test is;
<a href="#request.controlPath
#individua
ls/index.c
fm?fa=view
indiv&indi
vnum=#QSpe
cExInfoInd
iv.id#" target="_blank" onMouseOver="return tooltip('Home -#formatphonenumber(QSpecE
xInfoIndiv
.home_area
_code & QSpecExInfoIndiv.home_phon
e)#','', 'width:200, border:5, fontsize:16, titlefontsize:16, bordercolor:##FF0000, textcolor:##FF0000');" onmouseout="return hideTip();"><font color="green">#QSpecExInfo
Indiv.Firs
tName# #QSpecExInfoIndiv.LastName
#</font></
a>
Where I embed The home area code and phone number in the text. That data is already available in the query and is static information.
If I were versed in javascript I could create a function to gather data from the database but that's beyond me.
Any thoughts
Start Free Trial