Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > Unterminated string constant in IE

Reply
Thread Tools

Unterminated string constant in IE

 
 
polilop
Guest
Posts: n/a
 
      02-28-2006
When i open my page in IE it shows an error Unterminated string constant om
Line.....
When i look at the line it shows the line where the </SCRIPT> tag is ????

Moziila dose not see this error, allso avant browser (shell for IE) dosent
see it.
the script works fine, i'm just anoyed with IE calling errors.
Anybody know why this is?


 
Reply With Quote
 
 
 
 
RobG
Guest
Posts: n/a
 
      02-28-2006
polilop wrote:
> When i open my page in IE it shows an error Unterminated string constant om
> Line.....
> When i look at the line it shows the line where the </SCRIPT> tag is ????


IE's error reports are notoriously vague and rarely point directly to
the cause.


> Moziila dose not see this error, allso avant browser (shell for IE) dosent
> see it.
> the script works fine, i'm just anoyed with IE calling errors.
> Anybody know why this is?


Reduce the code to the minimum that still shows the error. If you can't
fix it from there, post it or a link.


--
Rob
 
Reply With Quote
 
 
 
 
Lasse Reichstein Nielsen
Guest
Posts: n/a
 
      02-28-2006
"polilop" <fmatosic@@inet.hr> writes:

> When i open my page in IE it shows an error Unterminated string constant om
> Line.....
> When i look at the line it shows the line where the </SCRIPT> tag is ????


Well, if you didn't terminate the string constant before, this is where
the parser would definitly have to say that it's too late.
It would be great with a hint to what line the string literal started
on, though, but IE's error messages are rarely that helpful.

> Moziila dose not see this error, allso avant browser (shell for IE) dosent
> see it.


Guess there is something wrong somewhere then.

Are you watching the javascript console in Mozilla? An unterminated
string literal is unlikely to only be unterminated in one browser,
unless the browsers are sent different pages, or you are using IE's
conditional comments to have an IE-only script.

> the script works fine, i'm just anoyed with IE calling errors.
> Anybody know why this is?


Without seeing the page? Unlikely.

/L
--
Lasse Reichstein Nielsen -
DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleDOM.html>
'Faith without judgement merely degrades the spirit divine.'
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
unterminated string constant =?Utf-8?B?a2VuIHM=?= ASP .Net 5 10-20-2006 06:55 PM
Unterminated string constant - what causes it? Tav Javascript 2 01-09-2006 03:06 PM
unterminated string constant aroraamit81@gmail.com Javascript 3 12-08-2005 04:03 PM
unterminated string constant aroraamit81@gmail.com Javascript 3 12-08-2005 01:17 PM
Need help with unterminated string constant ... Jeff Javascript 4 05-07-2004 12:09 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57