This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes Unterminated string constant Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Unterminated string constant " Watch "Unterminated string constant " New topic

Unterminated string constant

Sumi Kuppusamy

Joined: Apr 21, 2006
Posts: 15
I'm getting unterminated string constant error. It says Line 16 and I hve no code from line 1 to line 24. This error is not coming in Mozilla. Can anyone pls help in figuring out the error location.

Thanks in Advance
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63534

Do you not think it might be useful to show us the code?

[Asking smart questions] [About Bear] [Books by Bear]
Sumi Kuppusamy

Joined: Apr 21, 2006
Posts: 15
The file has more than 2000 lines, also its not part of the code it throws the error. I did file comparison of view source of 2 files, one which throws this error and one which doesnt throw this exception, there were no differences.
Yuriy Fuksenko
Ranch Hand

Joined: Feb 02, 2001
Posts: 413
so, its magic

when you say it is not happening in Mozilla, you mean the dialog is not showing, or that you looked at "Tools->JavaScript console" and there is no error there?
Also, if your file is to big to post on a forum, you can put it somewhere else and give us a link to it.

with line number, if you have js files used with script tags, IE will actually give you a line number within such file.
Sumi Kuppusamy

Joined: Apr 21, 2006
Posts: 15
Thanks Yuriy. I was thinking I will get the dialog box in mozilla like IE. Using Javascript console in mozilla, I were able to figure out the exact location of that error. Thanks a lot.
I agree. Here's the link:
subject: Unterminated string constant
It's not a secret anymore!