On Thu, Feb 25, 2010 at 8:43 AM, Rick R <[email protected]> wrote:
> >> {jsonCall("pressed", JsRaw("event.which")).toJsCmd}
> >
> > How about:
> >
> > onkeypress={"processKeyPress(function(a) {"+jsonCall("pressed",
> > JsRaw("a")).toJsCmd+"})"}
> >
> > This will pass a function to the processKeyPress method. If you want to
> > send the message, you call the function with the value to send to the
> > server.
> >
>
> Of course. The old wrap it in another function trick.
Yeah... the functional side of my brain was kicked into high gear when I
found Scala... now the solution to *all* problems is "wrap it in a
function". ;-)
> I need to get more sleep.
> Thanks for your help and patience on this.
>
> --
> 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]<liftweb%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/liftweb?hl=en.
>
>
--
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.