On Thu, Oct 8, 2009 at 9:18 AM, Java1Guy <[email protected]> wrote:
>
> Hey! I'm quite baffled by this -
> Template flottest.html:
> <lift:surround with="flotsupport" at="content">
> <script type="text/javascript">
>
You need a
<![CDATA[
> var i=0;
> while (i < 14) {
> i = i + 5;
> };
>
]]>
Around the script. The "< 14" looks to the parser like the beginning of a
tag.
Note the message that tells you to look on line 4 at character 19... this it
the line and character of the "<".
Thanks,
David
</script>
> <h2>H2</h2>
> </lift:surround>
> Template flotsupport.html (in templates-hidden):
> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:lift="http://
> liftweb.net/">
> <head>
> <title>Flot Toolkit Test Page</title>
> </head>
> <body>
> <h1>Flot Skeleton Page</h1>
> <div>
> <lift:bind name="content" />
> </div>
> </body>
> </html>
>
> Can't get past:
> scala.xml.dtd.ValidationException: :4:19: name expected
> net.liftweb.util.PCDataXmlParser.reportSyntaxError
> (PCDataMarkupParser.scala:168)
> scala.xml.parsing.MarkupParser$class.reportSyntaxError
> (MarkupParser.scala:1117)
> net.liftweb.util.PCDataXmlParser.reportSyntaxError
> (PCDataMarkupParser.scala:91)
> scala.xml.parsing.MarkupParser$class.xName(MarkupParser.scala:708)
> net.liftweb.util.PCDataXmlParser.xName(PCDataMarkupParser.scala:91)
> scala.xml.parsing.MarkupParser$class.xTag(MarkupParser.scala:360)
> net.liftweb.util.PCDataXmlParser.xTag(PCDataMarkupParser.scala:91)
> scala.xml.parsing.MarkupParser$class.element1(MarkupParser.scala:667)
>
> If I put a while for for loop in the script I get the parsing error.
> WTF?
> (lift-1.1M4, jetty-6.1.6rc1 inside maven-2.0.10, jdk 1.6.0_14-b08,
> Linux, Firefox...)
>
> Thanks, Mark
>
> >
>
--
Lift, the simply functional web framework http://liftweb.net
Beginning Scala http://www.apress.com/book/view/1430219890
Follow me: http://twitter.com/dpp
Surf the harmonics
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Lift" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/liftweb?hl=en
-~----------~----~----~----~------~----~------~--~---