[Lift] Re: How to use "SHtml.ajaxCall"?

2009-07-23 Thread marius d.
Oops typo: import net.liftweb.js.jquery._ should be import net.liftweb.http.js.jquery._ I just wrote the code in the mail (no IDE) to highlight the concept not necessarily copy-paste-able :) Br's, Marius On Jul 23, 5:29 pm, Dorinel wrote: > marius d. wrote: > > Try: > > > > ('value')"),

[Lift] Re: How to use "SHtml.ajaxCall"?

2009-07-23 Thread Timothy Perrett
Couldn't agree more, just gist it... http://gist.github.com/ Cheers, Tim On 23/07/2009 16:09, "Lance Zheng" wrote: > (google group is not a good place to show code, no syntax highlight) --~--~-~--~~~---~--~~ You received this message because you are subscri

[Lift] Re: How to use "SHtml.ajaxCall"?

2009-07-23 Thread Lance Zheng
my code all here: (google group is not a good place to show code, no syntax highlight) -- import scala.xml.NodeSeq import net.liftweb.http.S._ import net.liftweb.http.SHtml import SHtml._ import net.liftweb.util.Helpers._ import net.liftweb.http.js.{JsCmd, JsCmds} import ne

[Lift] Re: How to use "SHtml.ajaxCall"?

2009-07-23 Thread Dorinel
marius d. wrote: > Try: > > ('value')"), updateWho _)._2}>{?("send")} This still is not working for me, it's what I get: use java command with args in file forced : false /home/dorin/work/scala/hello-lift/src/main/scala/net/liftweb/hello/ snippet/HelloFormAjax.scala:22: error: ')' expected

[Lift] Re: How to use "SHtml.ajaxCall"?

2009-07-23 Thread Lance Zheng
thank u, that works for me. On Jul 23, 2:59 pm, "marius d." wrote: > Try: > > ('value')"), updateWho _)._2}>{?("send")} > > or > > import net.liftweb.js.jquery._ > import JqJE._ > > > JqGetAttr > ("value"), updateWho _)._2}>{?("send")} > > Br's, > Marius > > On Jul 23, 8:54 am, Lance Zheng wro

[Lift] Re: How to use "SHtml.ajaxCall"?

2009-07-22 Thread marius d.
Try: {?("send")} or import net.liftweb.js.jquery._ import JqJE._ > JqGetAttr ("value"), updateWho _)._2}>{?("send")} Br's, Marius On Jul 23, 8:54 am, Lance Zheng wrote: > Hi, > I try the example "Hello Darwin"(http://wiki.liftweb.net/index.php/ > Hello_Darwin), but ajax form can't work cor