Monday, May 20, 2024
63
rated 0 times [  65] [ 2]  / answers: 1 / hits: 20192  / 12 Years ago, tue, february 12, 2013, 12:00:00

I'm developing a site which is stored locally, and works great in all browsers I've tested except for any versions of IE.
It gives me SCRIPT1014: Invalid character for each js-file which I've included in script-tags like this for instance: <script src=Scripts/jquery-1.9.1.min.js></script>



This generates the following error:



SCRIPT1014: Invalid character 
jquery-1.9.1.min.js, line 1 character 1


If I then click the error to view the file in ie developer tools it looks like this:



?? I?%&/m?{J?J??t??`$ؐ@??????iG#)?*??eVe]f@?흼??{???{???;?N'????fdl??J?ɞ!????~|?????


etc



I'd except this to be a common problem (Or don't people ever view locally stored webpages in ie?) but I didn't find much when searching, and what I found didn't help.

How to get around this this?


More From » internet-explorer

 Answers
7

There is a similar problem here: SCRIPT1014: Invalid character



I would check the browser security settings for local scripts.



You can try adding this to your page and see if it works:



<!-- saved from url=(0016)http://localhost -->


or you can set the 'local intranet' zone to low and disable protected mode if on.



http://msdn.microsoft.com/en-us/library/ms537628(v=vs.85).aspx



Edit: Answer in comments - cleared browser cache.


[#80268] Monday, February 11, 2013, 12 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
isaacvalentinn

Total Points: 325
Total Questions: 120
Total Answers: 131

Location: North Korea
Member since Tue, Jun 16, 2020
4 Years ago
isaacvalentinn questions
Mon, Jan 18, 21, 00:00, 3 Years ago
Mon, Nov 23, 20, 00:00, 4 Years ago
Wed, Sep 23, 20, 00:00, 4 Years ago
;