Hi,

I have the following code:

  def jsF(x: String): JsCmd = {
    /*
    JsCmds.SetHtml(...)
    JsCmds.SetElemById(...)
    */
    JE.JsRaw("alert('1')").cmd
    JE.JsRaw("alert('2'); alert('3')").cmd // last cmd
  }

<button onclick={SHtml.ajaxCall(Str(x), jsF _)._2}
</button>

when I tried, only the last cmd got executed, I know this is because
it's the return value for the whole function jsF().

I'm wondering is it possible to make it execute a sequence of JsCmd?
e.g. as the code that have been commented out? how this can be done in
Lift (instead of writing raw JsRaw)?

Thanks!

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