[thelist] Javascript and breaking within strings

Joshua Olson joshua at waetech.com
Mon Apr 18 16:24:30 CDT 2005


> -----Original Message-----
> From: Steve James
> Sent: Monday, April 18, 2005 5:14 PM
> 
> Can you make a multiline block of text a string variable, without 
> breaking it up?
> 
> WHAT I WOULD LIKE TO DO (gives me a "unterminated string 
> literal" error):
> theVar = "Line 1 text<br>
> Line 2 text<br>
> Line 3<br>";

Perhaps this will be close enough to what you are trying to do?

theVar = "Line 1 text<br>" + 
"Line 2 text<br>" + 
"Line 3<br>";

HTH,

<><><><><><><><><><>
Joshua Olson
Web Application Engineer
WAE Tech Inc.
http://www.waetech.com/service_areas/
706.210.0168 




More information about the thelist mailing list