I'm trying to make a news tick tape using java script and coldfusion when I use the following code I got an error
var content='<CFOUTPUT query="show"><cfif #location# is 7 and flag LTE 7><p><a href="show.cfm?val=#id#">#title#</a></p><cfset flag=flag+1></CFIF>
</cfoutput>';
The error says: Unterminated string constant
if I replace #title# with any other string or with #id# the script works.
I know that the problem is with the string #title# but what kind of problem is this?? the string title is not more than 100 characters.
var content='<CFOUTPUT query="show"><cfif #location# is 7 and flag LTE 7><p><a href="show.cfm?val=#id#">#title#</a></p><cfset flag=flag+1></CFIF>
</cfoutput>';
The error says: Unterminated string constant
if I replace #title# with any other string or with #id# the script works.
I know that the problem is with the string #title# but what kind of problem is this?? the string title is not more than 100 characters.