On Thu, Jul 30, 2009 at 10:55 PM, Channing Walton <[email protected]>wrote:

>
>
> > Are you putting the result of:
> >
> > Script(Function("sendPointToServer", "point",
> PointHandler.call("setPoint",
> > JsVal("point"))))
> >
> > Anywhere on your page?
>
> I believe so, the page has a snippet:
>
> <lift:mapSnippet.mapFunctions/>
>
> which looks like this:
>
> def mapFunctions(xhtml : NodeSeq) : NodeSeq =  {
>    val node = Script(Function("sendPointToServer", List("point"),
> PointHandler.call("setPoint", JsVar("point"))))
>    node ++ <head>{Script(OnLoad(Call("initialize")))}</head>
>  }
>

Whoops... should be:

Script(Function("sendPointToServer", "point", PointHandler.call("setPoint",
JsVal("point"))) & PointHandler.jsCmd)


>
> and in the page I see:
> > function sendPointToServer(point) {
> >    F542198622797IUJ({'command': 'setPoint', 'params':point});
> >    }
>
>
> >
>


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

Reply via email to