[Lift] Re: Using AJAX calls in Lift Snippets

2009-07-06 Thread marius d.
On Jul 6, 5:44 pm, Gonzalo N wrote: > Hello! > > I am having a problem with a javascript function that creates a new > textarea from a snippet. I am using the Lift 1.0-SNAPSHOT version and > the Scala version 2.7.4. > Basically, what I am doing is creating a ajaxButton in a snippet, that > call

[Lift] Re: Using AJAX calls in Lift Snippets

2009-07-06 Thread Gonzalo N
Hi. Probably I didn't explain well and I am sorry for that. I've created a simple form in Lift processed via a snippet that contains 3 form attributes: function_definition(a textarea), buttonFunDef(ajaxButton) and save(submit) In the HTML file I made the call to those attributes of the snippet, in

[Lift] Re: Using AJAX calls in Lift Snippets

2009-07-06 Thread marius d.
Well this definition of ajaxButton that you use you are passing indeed the AddFunctionDefinition function. But this function doesn;t do any Ajax call. It receives a parameter (that is not declared btw) which is essentially a function. You have to manually call this function in order for the Ajax c