Error:uninterrupted String Constant in IE

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • aravin9786
    New Member
    • Mar 2008
    • 3

    #1

    Error:uninterrupted String Constant in IE

    I am currently working in TCL and JSP template.In the website If i save a content(its like a editing the title and saving) with double quote it shows uninterrupted String Constant in IE . If i use single quote then error is not coming. Any one please tell me how to check and correct the error. Template was around 800 lines with mixture of Java scripts , TCl, HTML and JSP.
  • acoder
    Recognized Expert MVP
    • Nov 2006
    • 16032

    #2
    If using double quotes within double quotes, you will get errors unless you escape them, i.e. \" instead of just ".

    Comment

    • aravin9786
      New Member
      • Mar 2008
      • 3

      #3
      Originally posted by acoder
      If using double quotes within double quotes, you will get errors unless you escape them, i.e. \" instead of just ".
      I couldn't get it. can u please tell me in detail.
      Thanks in advance

      Comment

      • acoder
        Recognized Expert MVP
        • Nov 2006
        • 16032

        #4
        Show the line (or snippet of code) with the error.

        Comment

        • aravin9786
          New Member
          • Mar 2008
          • 3

          #5
          Thanx for ur reply it works,

          But I have one more problem.. I have to replace " and ' with ` that are present in the string.

          I used the following reg exp: str.replace(/["']/, " ` " ).. but its not working..

          it says Missing term. out.print str.replace(/["']/, " ` " ).

          any help greatly appriciated

          Comment

          • acoder
            Recognized Expert MVP
            • Nov 2006
            • 16032

            #6
            If you're using JSP to write this then you will need to escape quotes. Show the full code for that line.

            Comment

            Working...