aspose file tools*
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
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Unterminated string constant " Watch "Unterminated string constant " New topic
Author

Unterminated string constant

Sumi Kuppusamy
Greenhorn

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
Marshal

Joined: Jan 10, 2002
Posts: 61764
    
  67

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


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Sumi Kuppusamy
Greenhorn

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
Greenhorn

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: http://aspose.com/file-tools
 
subject: Unterminated string constant