S
scott
Can someone help me with quote syntax? The single quotes with javascript
function are messing me up.
CODE
function are messing me up.
CODE
scott said: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>"
Bob Barrows said: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"
GOOD CODE:
<%
If sPageType = "forum" Then %>
bgcolor="<%= tblcolor %>" style="cursor:default;"
onMouseOver="this.bgColor='#e6e6e6'" onMouseOut="this.bgColor='<%=
tblcolor
%>'"
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.