On Fri, Sep 25, 2009 at 8:13 AM, glenn <gl...@exmbly.com> wrote: > > 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)). >
Sorry... didn't quite understand. Are you using your own menu generator or the standard Lift menu generator? I'm thinking that we have to uniquely identify (put a knowable id on) each <a href> that is generated. If you're doing your own menu generation from SiteMap, you can probably get your code to work by using the name of the Loc as the id. If you're using the standard Lift Menu snippet to create your menus, you'll have to open a ticket, I'll prioritize the ticket, then we'll wait for review board and then you'll get your change. > > 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 > > > -- 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 -~----------~----~----~----~------~----~------~--~---