Loading ...
Sorry, an error occurred while loading the content.

yuicompressor returning errors

Expand Messages
  • yuijavascript
    Hi, my javascript: function splitText(text) { return text.split( - )[1]; } The error is: [INFO] Using charset Cp1252 [Error] 1:20:illegal character [Error]
    Message 1 of 1 , Jun 25, 2009
    • 0 Attachment
      Hi,

      my javascript:

      function splitText(text)
      {
      return text.split('-')[1];
      }

      The error is:

      [INFO] Using charset Cp1252

      [Error] 1:20:illegal character [Error] 1:20:syntax error [Error] 1:40:illegal character [Error] 1:49:missing ; before statement [Error] 1:50:illegal character .. .. [Error] 7:3:missing | in compound statement [error] 1:0:compilation produced 38 syntax errors ...

      Running windows xp, js file originally created in vs.net.

      Is this an encoding issue? or is my javascript just wrong?
    Your message has been successfully submitted and would be delivered to recipients shortly.