On Tue, Sep 29, 2009 at 1:22 PM, glenn <gl...@exmbly.com> wrote: > > I'd like to converting the following > > JsRaw("""function() $('#item-save').html(this.id + ' was > toggled')""") > > into something more object-oriented, using JQuery support functions in > Lift. > > I've tried various combiniations, including this > > AnonFunc(JqId("item-save") >> JqEmptyAfter(<div>{JsRaw(this.id)} was > toggled</div>)) >
AnonFunc(JqId("item-save") >> JqEmptyAfter(<div>{this.id} was toggled</div>)) No reason to promote this.id into some JavaScript thing. It's part of the XML literal. The XML literal is generated server-side as part of the JavaScript function. > > but nothing seems to work. It just treats this.id as ordinary text, > not as a Javascript variable. > > Any ideas would be appreciated. > > Glenn > > > -- Lift, the simply functional web framework http://liftweb.net Beginning Scala http://www.apress.com/book/view/1430219890 Follow me: http://twitter.com/dpp Surf the harmonics --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~----------~----~----~----~------~----~------~--~---