> --
> You received this message because you are subscribed to the Google Groups "Lift" group.
> To post to this group, send email to lif...@googlegroups.com.
> To unsubscribe from this group, send email to liftweb+u...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.
>
>
-Ross
Its the weekend. Be patient, you will likely get a response in the week. Whilst we do our best to cover the list over the weekends, for things that are more involved such as this we dont always have time to take from our other life commitments.
On 25 Jul 2010, at 16:41, zziemke wrote:
> nobody?
>
> On Jul 24, 12:57 pm, zziemke <zzie...@googlemail.com> wrote:
>> Hi guys,
>> this is a continuation ofhttp://scala-programming-language.1934581.n4.nabble.com/Has-anyone-go...
>>
>> The suggested LiftRules.useXhtmlMimeType = false; didn't work for me,
>> so I created a demo project:
>>
>> http://github.com/zziemke/uservoice-bug-demo
>>
>> Would be very much appreciated if you guys look into this issue.
>> Thanks!
>
> --
> You received this message because you are subscribed to the Google Groups "Lift" group.
> To post to this group, send email to lif...@googlegroups.com.
> To unsubscribe from this group, send email to liftweb+u...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.
>
>
--
You received this message because you are subscribed to the Google Groups "Lift" group.
To post to this group, send email to lif...@googlegroups.com.
To unsubscribe from this group, send email to liftweb+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.
rmm@Hugo:~/uservoice-bug-demo$ sbt compile
[info] Building project bug_report 1.0 against Scala 2.7.7
[info] using Project with sbt 0.7.4 and Scala 2.7.7
[info]
[info] == compile ==
[info] Source analysis: 1 new/modified, 0 indirectly invalidated, 0 removed.
[info] Compiling main sources...
[error] /Users/rmm/uservoice-bug-demo/src/main/scala/bootstrap/liftweb/Boot.scala:8: value watchedit is not a member of package com
[error] import com.watchedit.classes._
[error] ^
[error] one error found
[info] == compile ==
[error] Error running compile: Compilation failed
[info]
[info] Total time: 3 s, completed Jul 26, 2010 12:31:04 AM
[info]
[info] Total session time: 3 s, completed Jul 26, 2010 12:31:04 AM
[error] Error during build.
-Ross
On Jul 25, 2010, at 4:08 PM, Ziemke Zeno wrote:
> would be great :D
> thanks >:)
The first _is_ resolved by useXhtmlMimeType = false, if you checked firebug you'll notice that it changes to a parse error on this line (as viewed using Safari's developer tools):
s.setAttribute('src', ("https:" == document.location.protocol ? "https://&q
This is the second problem. You'll notice all those "s that shouldn't be there. This is because this (from uservoice.html) is incorrect XML:
<script type="text/javascript">
...
s.setAttribute('type', 'text/javascript');
s.setAttribute('src', ("https:" == document.location.protocol ? "https://" : "http://") + "cdn.uservoice.com/javascripts/widgets/tab.js");
document.getElementsByTagName('head')[0].appendChild(s);
...
</script>
In XML, double quotes are not legal except as part of attributes. To fix this you need to tell XML that the whole content of the <script> tag is raw text that should be passed, not XML. The way to do this is using <![CDATA[ ... ]]>, which you can see in use if you look at the source of your page from the browser, since Lift is inserting script tags using this:
<script type="text/javascript">
// <![CDATA[
var lift_page = "F754949135290TOX";
// ]]>
</script>
So, if you add
// <![CDATA[
just after <script> and
// ]]>
just before </script>, the problem should vanish.
Hope that explains,
-Ross