Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

help creating HTML string

Status
Not open for further replies.

knuckle05

Programmer
Dec 17, 2001
247
CA
Hi All,

I have the following string which I am trying to build in VBScript.

str = &quot;<li><A HREF='javascript:doMarker('abc')';</a>&quot;

however I have problems when I run my code because of the single quotes. Can someone point me in the right direction. Thx
 
you are missing your &quot;>&quot; for you anchor tag.

Single ticks should not matter unless you are storing them in a sql db. Then just replace(str,&quot;'&quot;,&quot;''&quot;) to handle it.

hth
 
str = &quot;<li><A HREF=&quot;&quot;javascript:doMarker('abc');&quot;&quot;></a>&quot;
you have to have the two different types of quotes if you're going to nest them.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top