Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need Help with "Unterminated String Constant" Error

Status
Not open for further replies.

xyzuser

Technical User
Aug 13, 2008
96
US
At the suggestion of people in the Windows XP Forum, I am re-posting this in this forum.

I am getting an error when my pages load. The error is unterminated string constant . It is saying "Line: 78 - Char:25 . But there isn't any character "25" on that line (line 78 is the last the line of the code below with </script> after the call to the external Javascript.

Here is the code:
Code:
<script  type="text/JavaScript">
myvar1="/mypageA.html"
</script>

<script src="jscript/Menu01.js" type="text/JavaScript">
</script>

The variable myvar1 is being passed to the external Javascript.

Everything works properly despite the error message.

But it doesn't look nice (nor professsional) to visitors to see the "Done with errors" message and symbol.

So what is wrong here? And where is it wrong - in this code, in the external javascript code?

Thanks

 
My guess is that the error is somewhere in Menu01.js. Just a hunch.

Tek-Tips Forums is Member Supported. Click Here to donate

<honk>*:O)</honk>

Tyres: Mine's a pint of the black stuff.
Mike: You can't drink a pint of Bovril.
 
Indeed, more code would be good. But please - make sure it's real code, not retyped as mistakes can creep in that way.

Also, make sure you're careful when taking code from responses (see thread216-1494587 for a reminder about why!).

Hope this helps,
Dan



Coedit Limited - Delivering standards compliant, accessible web solutions

Dan's Page [blue]@[/blue] Code Couch:
Code Couch Tech Snippets & Info:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top