Hi

I'm continuing to Catalyst program, I found server.pl built-in in catalyst module can not parse jqGrid correctly.

Below is error messages:

Error: syntax error Source File: http://localhost:3000/site/static/js/i18n/grid.locale-en. +js Line: 2 Source Code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w +3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> Error: syntax error Source File: http://localhost:3000/site/static/js/jquery.jqGrid.min.js Line: 2 Source Code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w +3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
But it could parse jquery and jquery-UI perfectly. and There is no any problem if I save it as html page(don't parse by Catalyst server.pl,just open it by Firefox)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w +3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>My First Grid</title> <link rel="stylesheet" type="text/css" media="screen" href="static/css +/ui-lightness/jquery-ui-1.8.1.custom.css" /> <link rel="stylesheet" type="text/html" media="screen" href="static/cs +s/ui.jqgrid.css" /> <style> html, body { margin: 0; padding: 0; font-size: 75%; } </style> <script src="static/js/jquery-1.4.2.min.js" type="text/javascript"></s +cript> <script src="static/js/i18n/grid.locale-en.js" ></script> <script src="static/js/jquery.jqGrid.min.js" type="text/javascript"></ +script> ....... .........
Any help are appreciated! Thanks.

UPDATE Sorry for my stupid fault. waste monks' time.





I am trying to improve my English skills, if you see a mistake please feel free to reply or /msg me a correction


In reply to syntax error! jqGrid problem parsed by Catalyst server.pl by xiaoyafeng

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.