Advanced Tooltips Support Product Page

Adding Dynamic Content - not understanding the escape charaters and Replace values

Asked 26 Jan 2011 11:14:28
1
has this question
26 Jan 2011 11:14:28 andrew grant posted:
Windows 7 home x64,Dreamweaver cs4, .asp page, access database.

Advanced Tooltips

Code-----------------

<a href="defectdetail.asp?CallID=<%=(openlist.Fields.Item("callID").Value)%>


------------------
Problem.
I dont want the link to go to the asp page but be show in the tooltip instead. Ive read the online manual but I dont know how to use this piece of code


<%= Replace(Replace(Replace((Recordset.Fields.Item("Name").Value),"'", "&#39;"),"""","&quot;"),"\","\\") %>




I need to show the recordset detail for the Value "callID".

Love all DMX stuff

Replies

Replied 27 Jan 2011 11:08:20
27 Jan 2011 11:08:20 Miroslav Zografski replied:
Hello Andrew,

Here is a follow up from our chat on Live Support:
This code:
<%= Replace(Replace(Replace((Recordset.Fields.Item("Name").Value),"'", "&#39;"),"""","&quot;"),"\","\\") %>

can be set in the Content field and to replace the "Name" with the name of the column you like to display.
Also you can use
<%= Recordset.Fields.Item("Name").Value %>

but you must be sure that there are no quotes or backslashes in the entries.

Regards,
Replied 27 Jan 2011 13:07:47
27 Jan 2011 13:07:47 andrew grant replied:
Cheers ... just working through it all.[]
Replied 27 Jan 2011 15:11:36
27 Jan 2011 15:11:36 Miroslav Zografski replied:
Hello Andrew,

You can post your findings here just for clarification.

Regards,

Reply to this topic