scott wrote:
Can someone help me with quote syntax? The single quotes with
javascript function are messing me up.
CODE
---------
response.write ""<a href=""javascript:
VerifyDelete1('del-message.asp?fid=" iActiveForumId1 & "&mode=" &
thread & "&tid=" & iId "');">" & "<img src=""images/xsm-delete.gif""
width=""10"" height=""10"" border=""0"" alt=""Delete
Message""></a></td>"
This may be easier:
....
%>
<a href="javascript
: VerifyDelete1('del-message.asp?fid=
<%= iActiveForumId1%>
&mode=
<%=thread %>
"&tid=
<%=iId%>
');>
<img src="images/xsm-delete.gif" width="10"
height="10" border="0" alt="Delete Message"></a></td>
However, if you MUST do it in a single response.write, my preference would
be to assign the string to a variable and response.write the variable ... it
makes the code a little cleaner:
<%
dim sHTML
....
sHTML= "<a href=""javascript
: " & _
"VerifyDelete1('del-message.asp?fid=" & iActiveForumId1 & _
"&mode=" & thread & "&tid=" & iId & "');"">" & vbcrlf & _
"<img src=""images/xsm-delete.gif"" width=""10"" " & _
"height=""10"" border=""0"" alt=""Delete Message""></a></td>"
....
%>
<html><body>
....
<%=sHTML%>
....
HTH,
Bob Barrows
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"