Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / HTML, CSS, Scripts / JavaScript / February 2006



Tip: Looking for answers? Try searching our database.

Unterminated string constant in IE

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
polilop - 28 Feb 2006 12:54 GMT
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?
RobG - 28 Feb 2006 13:38 GMT
> 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.

Signature

Rob

Lasse Reichstein Nielsen - 28 Feb 2006 17:06 GMT
> 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
Signature

Lasse Reichstein Nielsen  -  lrn@hotpop.com
DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleDOM.html>
 'Faith without judgement merely degrades the spirit divine.'

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.