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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

What is "Unterminated String Constant" Error? 2

Status
Not open for further replies.

xyzuser

Technical User
Aug 13, 2008
96
US
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. So what is wrong here?

Thanks


 
You could also try posting you question here forum216

Steve: N.M.N.F.
If something is popular, it must be wrong: Mark Twain
 
Thanks linney. Looks like I'm far from being the only one with this problem :) From what I briefly saw, I have to check for spaces and single quotation marks, just for starters.

Thanks sggaunt - I'll post it there, too.

(Stars for both of you for your assistance)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top