On Thu, Apr 30, 2009 at 5:44 AM, Timothy Perrett <timo...@getintheloop.eu>wrote:

>
> Yeah of course - im already familiar with the Script object. My code
> looks like:
>
>  def show(xhtml: NodeSeq): NodeSeq = bind("uedit", xhtml,
>    "application" -> Script(Run(script))
>  )


script is a String.  How is it built?


>
>
> And the rendered html looks like:
>
> <script type="text/javascript">
> // <![CDATA[
>
>    swfobject.embedSWF(
>      '/classpath/uedit/uedit.swf',
>      'ueditapp',
>      '800',
>      '500',
>      '9.0.0',
>      '/classpath/uedit/expressinstall.swf',
>      {&quot;useJSToGetCustomizationValues&quot;: &quot;false&quot;,
> &quot;zoom&quot;: &quot;fit&quot;, &quot;scrollBars&quot;:
> &quot;both&quot; ....}, {}, {});
> // ]]>
> </script>
>
> As you can see, the script items are still in place, yet its not
> working correctly.
>
> Thoughts?
>
> Cheers, Tim
>
> > Your code should look something like:
> >
> > import net.liftweb.http.js.JsCmds._
> >
> > <span>
> > This is some stuff on my page
> > {
> > Script(myScriptWhichIsAJsCmd)}
> >
> > </span>
>
>
> >
>


-- 
Lift, the simply functional web framework http://liftweb.net
Beginning Scala http://www.apress.com/book/view/1430219890
Follow me: http://twitter.com/dpp
Git some: http://github.com/dpp

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to liftweb@googlegroups.com
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to