[Lift] Re: Form submit and Ajax

2009-12-29 Thread greekscala
Hello Alex, thank you for the answer. Ok I will check it again set up a little example. Is this a lift way workflow? - show a page with a form - data is submitted to snippet - data is evaluated - get other fragments/templates and bind the values for them - invoke SetHtml that should replace

[Lift] Re: Form submit and Ajax

2009-12-29 Thread greekscala
Hello again, I think I found an error in the form processing, correcct me if it is not: This is the snippet: class Test { object name extends RequestVar[String](init) def render(xml: NodeSeq): NodeSeq = { def printName(): JsCmd = { Log.debug(name = + name.is)

Re: [Lift] Re: Form submit and Ajax

2009-12-29 Thread Alex Boisvert
On Tue, Dec 29, 2009 at 11:46 AM, greekscala hellectro...@gmail.com wrote: Is this a lift way workflow? - show a page with a form - data is submitted to snippet - data is evaluated - get other fragments/templates and bind the values for them - invoke SetHtml that should replace div content

[Lift] Re: Form submit and Ajax

2009-12-29 Thread Marius
Could you please post your generated markup from the browser? ... Do you see anything unusual in FireBug? Br's, Marius On Dec 29, 10:59 pm, greekscala hellectro...@gmail.com wrote: Hello again, I think I found an error in the form processing, correcct me if it is not: This is the snippet:

[Lift] Re: Form submit and Ajax

2009-12-29 Thread greekscala
Hello Marius, No there are no error messsages in the console window. This is the generated form: form id=F587106754336BUG action=javascript:// onsubmit=;liftAjax.lift_ajaxHandler(jQuery ('#'+F587106754336BUG).serialize(), function() { alert(an ajax response! init);; }, null, javascript);return

Re: [Lift] Re: Form submit and Ajax

2009-12-29 Thread Alex Boisvert
On Tue, Dec 29, 2009 at 12:59 PM, greekscala hellectro...@gmail.com wrote: class Test { object name extends RequestVar[String](init) def render(xml: NodeSeq): NodeSeq = { def printName(): JsCmd = { Log.debug(name = + name.is) JsCmds.Alert(an ajax response! + name.is) }