Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 7 of 7
  1. #1
    Registered User
    Join Date
    Oct 2004
    Posts
    592
    Thanks
    0
    Thanked 1 Time in 1 Post

    Error-Unterminated String Constant

    Hi masters,

    After the page has loaded, it's done with error- Unterminated String Constant.
    How can I correct it?
    Thank you !

  • #2
    Regular Coder
    Join Date
    Jan 2004
    Location
    Port Huron, MI, U.S.A.
    Posts
    280
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Let's see your code.
    The error means you put a string (text in quotes) and forgot the ending quote. You may have also done something like this, which is an error
    " he said"hi""
    where it should be
    "he said\'hi\'"
    or "he said'hi'"
    Oh, was I supposed to put something here? ........

  • #3
    Registered User
    Join Date
    Oct 2004
    Posts
    592
    Thanks
    0
    Thanked 1 Time in 1 Post
    Thanks Bobo!
    I've found it out.

  • #4
    Registered User
    Join Date
    Oct 2004
    Posts
    592
    Thanks
    0
    Thanked 1 Time in 1 Post
    Ah...it makes me mad ....
    one time loaded with error free
    another time loaded with error

    IE browser mentions:
    Line :2
    Char :19
    code :0

    Where does line 2 exist?
    <html>
    <title> <---- Isn't line 2?

  • #5
    Master Coder
    Join Date
    Feb 2003
    Location
    Umeå, Sweden
    Posts
    5,575
    Thanks
    0
    Thanked 83 Times in 74 Posts
    A lot of the time, iew error messages are worthless, it has long had problems with pointing out where errors are. You could get the Microsoft Windows Script Debugger if you want better error tracking. However, Opera and Mozilla both have far better error tracking capabilities, so use them for primary debugging for all code that is not iew specific.
    liorean <[lio@wg]>
    Articles: RegEx evolt wsabstract , Named Arguments
    Useful Threads: JavaScript Docs & Refs, FAQ - HTML & CSS Docs, FAQ - XML Doc & Refs
    Moz: JavaScript DOM Interfaces MSDN: JScript DHTML KDE: KJS KHTML Opera: Standards

  • #6
    Regular Coder
    Join Date
    Aug 2004
    Location
    codegoboom@yahoo.com
    Posts
    999
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I've noticed that the last error takes precedence, so, for instance, when a parsing error occurs in a function, and then it is called onload, the line # will point to the onload line...
    *this message will self destruct in n-seconds*

  • #7
    Regular Coder
    Join Date
    Jan 2004
    Location
    Port Huron, MI, U.S.A.
    Posts
    280
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Sometimes I get "object expected" at line 1 or even line 0! What the heck is that?!
    Oh, was I supposed to put something here? ........


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •