Lee,
If you want to include a JavaScript script on the page, the easiest
mechanism is:

import net.liftweb.http._
import js._
import JsCmds._
import JE._

Script(JsRaw(a String containing the raw script))

This will create a <script> tag on the page and put a // <![CDATA[ in it
followed by your script followed by //]]> and the closing </script> tag.

If this is not what you were looking to do, please let us know.

Thanks,

David

On Thu, Feb 26, 2009 at 11:28 AM, Lee Mighdoll <leemighd...@gmail.com>wrote:

> I'd like to make a bookmarklet snippet.  So I want to take a short
> javascript file, encode it as url, and then include it in a snippet.
>
> Any suggestions?  Not sure whether to solve this with mvn or lift -- I'm
> new to both.
>
>
> >
>


-- 
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