Hello!
I've got the description of a link hidden in javascript code, so when a user rolls over an icon it displays the description of that link in a pop up window. My problem is that if the description contains a ' or " character it doesn't work - I need to escape them, but am not sure how.
I've done something similar to this in an older version of linkSQL but it doesn't seem to work in my latest install. The following code..
<!--
features[<%ID%>] = "<%if Description%><%GT::CGI::html_escape(<%Description%>)%><%endif%>" ;
//-->
</SCRIPT>
produces an unknown tag error in the html...
any idea how I can get this to work?
thanks
r
I've got the description of a link hidden in javascript code, so when a user rolls over an icon it displays the description of that link in a pop up window. My problem is that if the description contains a ' or " character it doesn't work - I need to escape them, but am not sure how.
I've done something similar to this in an older version of linkSQL but it doesn't seem to work in my latest install. The following code..
Code:
<SCRIPT TYPE="text/javascript"> <!--
features[<%ID%>] = "<%if Description%><%GT::CGI::html_escape(<%Description%>)%><%endif%>" ;
//-->
</SCRIPT>
produces an unknown tag error in the html...
Code:
features[10] = "Unknown Tag: 'GT::CGI::html_escape(<%Description')%>" ;any idea how I can get this to work?
thanks
r