-1
response.write('Your case has been submitted successfully and you should receive an email notification soon.<br><br>The Case# is"+caseId+"<br><h2>title</h2>');

Works flawlessly if I move the concatenated value to the end of the string, but not if I want it in the middle of Text. This is to get rendered in an iframe on a webpage

4

3 回答 3

1

should be:

response.write('Your case has been submitted successfully and you should receive an email notification soon.<br><br>The Case# is'+caseId+'<br><h2>title</h2>');
于 2013-03-30T04:52:11.883 回答
1

You are mismatching your quotes. You start with a single quote ' and then use a double quote " in the middle.

于 2013-03-30T04:52:19.690 回答
0

'+caseId+' use single quotes here..

 'Your case has been submitted successfully and you should receive an email notification soon.<br><br>The Case# is'+caseId+'<br><h2>title</h2>'
于 2013-03-30T04:52:47.000 回答