View Full Version : what syntax do delimited links in document.write

05-06-2010, 02:42 AM

This code below is part of a PHP document but is essentially just HTML code. It's part of Yahoo's code and causes a (delimiter """ invalid: only S separators and TAGC allowed here) error. Dreamweaver validation suggests the < & and > tags should be converted to &lt [HTML 4.0]

document.write("<SCR" + "IPT language='JavaScript' type='text/javascript' "
+ "SRC=//" + "srv1.wa.marketingsolutions.yahoo.com" + "/script/ScriptServlet" + "?aid=" + ysm_accountid
+ "></SCR" + "IPT>");

I attempted to apply the Dreamweaver recommendation but when uploaded to the server it only wrote the line into the browser screen.

I know this has to be a simple solution.

05-06-2010, 04:58 AM
Wrong section. This is a Javascript question (not PHP). Moved.