David, Thanks for the reply. The Loc, itself, though. How do I write that to create the Ajax link. I want to be able to modify an html element when the link is clicked, as in SetHtml("item-save", edit(item)).
Glenn On Sep 24, 5:05 pm, David Pollak <feeder.of.the.be...@gmail.com> wrote: > val myLoc: Loc[_] = ... > > bind("item", xhtml, "addNew" -> <a href={myLoc.createDefaultLink}>Hello</a>) > > > > On Wed, Sep 23, 2009 at 11:25 AM, glenn <gl...@exmbly.com> wrote: > > > I have a snippet that creates a Ajax link. > > > bind("item", xhtml, > > "addNew" -> {SHtml.a({ ()=> > > SetHtml("item-save", edit(item))}, > > Text(MenuTitle_Add) > > )} > > ) > > > How would I, instead, create the same or similar link using a Loc? > > > Glenn > > -- > Lift, the simply functional web frameworkhttp://liftweb.net > Beginning Scalahttp://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 -~----------~----~----~----~------~----~------~--~---