d6y/lift-cookbook — Issue #9: Trigger server-side Scala code from a button press
Author: d6y
Created: 2012-03-07 19:58:46+00:00
State: open

You want to trigger a function on the server from a button press.

Solution: SHtml.ajaxInvoke

Discussion: explain signature of ajaxInvoke. Possibly mention jsonCall.

From:

http://groups.google.com/group/liftweb/browse_thread/thread/37bb6d165ba6bee9/d7bd4aca18ccec50?lnk=gst&q=%5BLift%5D+Easiest+way+to+trigger+server-side+Scala+code+#d7bd4aca18ccec50

and

http://blog.fmpwizard.com/scala-lift-custom-wizard (search for Call Scala code from JavaScript.)