By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
425,534 Members | 1,807 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 425,534 IT Pros & Developers. It's quick & easy.

Unterminated string constant in IE

P: n/a
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?
Feb 28 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
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
Feb 28 '06 #2

P: n/a
"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 - lr*@hotpop.com
DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleDOM.html>
'Faith without judgement merely degrades the spirit divine.'
Feb 28 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.