[Lift] Re: Ajax example from the book

2009-09-14 Thread Daniel Nelson
If you're referring to the Exploring Lift book, have a look at Section 3.11.1 Binding Values in Snippets where it explains bind. (I'm new to Lift myself and hopefully not leading you astray.) 1. myFunc's html parameter is fed automatically by the HTML Lift Template. In the follow example,

[Lift] Re: Ajax example from the book

2009-09-14 Thread Derek Chen-Becker
I think that he's referring to the SetHtml, which is actually a JsExp that has to be returned from any Ajax functions (the javascript is returned to the client and executed). In the case of the example code, it will set the contents of the div with the id my-div to a single Text element of That's

[Lift] Re: Ajax example from the book

2009-09-14 Thread Jack Widman
Thanks. Yes thats what I meant. On Mon, Sep 14, 2009 at 3:42 PM, Derek Chen-Becker dchenbec...@gmail.comwrote: I think that he's referring to the SetHtml, which is actually a JsExp that has to be returned from any Ajax functions (the javascript is returned to the client and executed). In the

[Lift] Re: Ajax example from the book

2009-09-14 Thread Jack Widman
I was referring to that book. Is there another? :) Thanks for your help Daniel. On Mon, Sep 14, 2009 at 9:52 AM, Daniel Nelson dpn53...@gmail.com wrote: If you're referring to the Exploring Lift book, have a look at Section 3.11.1 Binding Values in Snippets where it explains bind. (I'm new

[Lift] Re: Ajax example from the book

2009-09-14 Thread Randinn
Not at the moment but it does have a group http://groups.google.com/group/the-lift-book On Sep 15, 5:45 am, Jack Widman jack.wid...@gmail.com wrote: I was referring to that book. Is there another? :) Thanks for your help Daniel. On Mon, Sep 14, 2009 at 9:52 AM, Daniel Nelson