PDA

View Full Version : unterminated string constant error



edwardking
21 Feb 2011, 2:35 PM
I use ext-3.3.1 under Tomcat7.0.8,I expand ext to Tomcat ROOT directory,directory like follows:
Tomcat-webapps-ROOT-ext
Tomcat-webapps-ROOT-ext-resources
Tomcat-webapps-ROOT-ext-adapter
Tomcat-webapps-ROOT-ext-src
.....
Then I start tomcat,and visit my ext code, http://localhost:8080/test.html

test.html code is follows:















Above code can run,but it raise a javascript error:
unterminated string constant
ext-lang-zh_CN.js Line:23
code:0 char:55
URI:http://localhost:8080/ext/src/locale/ext-lang-zh_CN.js

Why raise above javascript error? How to correct it?
Thanks

darthwes
21 Feb 2011, 4:46 PM
Whoa dude, you just linked to my site...

I copy and pasted your code and get no such error. What browser are we talking? Are you sure you have the latest code? What Ext version? 3.3? 3.2.1? I can not replicates.

edwardking
21 Feb 2011, 5:06 PM
I download ExtJS by using following URL:
http://www.sencha.com/products/extjs/download/ext-js-3.3.1/

I use Internet Explorer 8.0.6001.18702, I try above code by another computer,it still raise above error!

What's wrong with above code?

Thanks