Connecting Tech Pros Worldwide Forums | Help | Site Map

JS file handled differently than in-line script block

bas jaburg
Guest
 
Posts: n/a
#1: Nov 19 '05
Hello,

I have a funny problem:

When I put the following script-block in a an aspx page it goes fine:

<script>
var AccentSymbol=["Á"];
</script>

However, if i put this line of code in a JS-script file and include
that file in my page like this:

<script src=myscript.js></script>

I get the following error:

Unterminated string constant


This happens only when it's an ASPX page and only in IE!


Any suggestions?

Help greatly appreciated.

Bas Jaburg
bas@jaburg.com
www.jaburg.com

Closed Thread