开发者

comma delimit javascript/asp line

开发者 https://www.devze.com 2022-12-14 21:49 出处:网络
What is the correct way to comma delimit this line, I keep getting javascript errors: <a href=\"javascript:doSubmit(<%= pound & rs(\"AdvertiserID\")%>, <%=rs(\"AdvertiserName\")%>)

What is the correct way to comma delimit this line, I keep getting javascript errors:

<a href="javascript:doSubmit(<%= pound & rs("AdvertiserID")%>, <%=rs("AdvertiserName")%>)">

Its Friday, what can I say...

The <%=rs("AdvertiserName")%>) can have single quotes in it, such as Dillard's开发者_开发知识库 and needs to be delimited, how would I add them? so I would end up with doSubmit(5432, "Dillard's")?

Thanks, R.


I think you need to swap the positions of your final double quote and close parenthesis:

)" instead of ")

0

精彩评论

暂无评论...
验证码 换一张
取 消