Results 1 to 1 of 1
Thread: Unterminated String constant
-
01-04-2010, 11:23 AM #1
Sophomore
- Join Date
- Jan 2010
- Posts
- 104
- Thanks
- 0
- Thanked 1 Time in 1 Post
- Feedback Score
- 0
Unterminated String constant
In JavaScript, I am printing the values as
<script>alert('<%=status%>')</script>
Javascript error - Unterminated string constant.
In JSP I am getting status variable as <% status = instanceObj.get("status");%>
status value -
({
selected:null,
field:"[\r {\r name:\"shipmentno\", \r width:null\r }, \r {\r name:\"selection\", \r width:50\r }, \r {\r name:\"invoicenumber\", \r width:null\r }, \r {\r name:\"issuedate\", \r width:122\r }, \r {\r name:\"buyername\", \r width:null\r }, \r {\r name:\"buyercountry\", \r width:null\r }, \r {\r name:\"sellername\", \r width:null\r }, \r {\r name:\"sellercountry\", \r width:null\r }, \r {\r name:\"currency\", \r width:null\r }, \r {\r name:\"amount\", \r width:null\r }, \r {\r name:\"status\", \r width:null\r }, \r {\r name:\"substatus\", \r width:null\r }, \r {\r name:\"lastAction\", \r width:null\r }\r]",
sort:"({\r fieldName:null, \r sortDir:true\r})"
})
This is happening since, selected: , field: and sort: are coming on next line..
Please suggest some solution.
Similar Threads
-
Replace String Ignoring Case - ASP .NET
By manik in forum ASPReplies: 0Last Post: 03-30-2010, 03:11 PM -
how can i filter string using regular expression
By Abina in forum PHPReplies: 1Last Post: 02-03-2010, 11:03 AM -
secure a database connection string
By soni1 in forum General TalkReplies: 2Last Post: 01-07-2010, 07:22 PM -
String Replace Function
By sunshine in forum JavaScript & AJAXReplies: 1Last Post: 01-04-2010, 04:46 PM -
PHP Tips And Tricks
By platter007 in forum Web Development - Programming & CodingReplies: 3Last Post: 08-21-2008, 10:45 AM


Reply With Quote

