That is exactly what I described above does. jsFunc: Call is the
javascript function call that will receive an extra parameter which is
the function that does your Ajax call. You can choose whne to invoke
the ajax call.
Do you need a more concrete example?
Br's,
Marius
On Oct 26, 4:07 am, "Neil
The work flow is like this:
1. When pressing the button, the js function will be executed, like
the js confirm() method,
if choose the 'NO' and nothing will be happen, but choose the
'YES' and the Ajax request is
sent to the server
2. On server side Lift executes your scala f
Please use this definition of the ajax button:
def ajaxButton(text: NodeSeq, jsFunc: Call, func: () => JsCmd,
attrs: (String, String)*): Elem
I described the functionality here:
http://groups.google.com/group/liftweb/browse_thread/thread/ec573c0e3052a862/038920885900c7d6?lnk=gst&q=ajaxButton#0