add a carriage return to a string
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   tyris_d
Posted On:   Wednesday, May 23, 2001 03:00 AM

hi all
i do have a string that i then display on a web page(in a js code).



i have tryed this :

			
strFillOp += "alert(test);
";

but the result in my js page is :
alert(test);alert(test);alert(test);

and what i want is :
			
alert(test);
alert(test);
alert(test);


what should i put in stead of
?
i have also tryed strFillOp += "alert(test);
"; but it gives me the same result

Re: add a carriage return to a string

Posted By:   Michael_Wax  
Posted On:   Wednesday, May 23, 2001 10:32 PM

This is not a pattern question, but a JSP/HTML question.
If you want a new line in HTML (which is what your JSP is creating), you need to use a
tag, not a newline character.
About | Sitemap | Contact