can i get source code of that example(tamplate for <div> )? On May 13, 4:22 am, David Pollak <[email protected]> wrote: > Please see some example code that I just put live > athttp://demo.liftweb.net/templating/selectomatic > > It will allow you to select which <div> tags are displayed based on value of > a bunch of Booleans > > > > On Thu, May 7, 2009 at 2:55 AM, pravin <[email protected]> wrote: > > > Hi, > > If there are more than 10 div tags on page ,So how can we display or > > hide them with chooseTemplate technique. > > boz chooseTemplate method chose one tag at time > > e.g > > val dispatch: DispatchIt = { > > case "run" if lastGuess == number => > > xhtml => win(chooseTemplate("choose", "win", xhtml)) > > > case "run" => > > xhtml => nextGuess(chooseTemplate("choose", "guess", xhtml)) > > > case "count_down" => > > xhtml => countDown(attr("from").map(Helpers.toInt).openOr(0)) > > } > > > this code is from site /examples (Number guess example) > > > can we chose multiple templates at a time so ,we can display no of div > > tag ? > > or is there any other way to do this? > > > Thanks in advace > > > On May 4, 7:33 pm, "marius d." <[email protected]> wrote: > > > There are so many ways ... > > > > 1. Use chooseTemplate technique. I think the examples application > > > from /sites uses this. > > > 2. In the snippet you have the snippet content and you can just strip > > > it out > > > 3. You can have a little JavaScript that is called when the page loads > > > that shows or hides the div ... if you need something more dynamic. > > > > Br's, > > > Marius > > > > On May 4, 1:28 pm, pravin <[email protected]> wrote: > > > > > HI, > > > > > I want to hide /display div tag. > > > > how can i controlled it from my snippet? > > > > my div tag contain table tag. > > > > > Thanks > > -- > Lift, the simply functional web frameworkhttp://liftweb.net > Beginning Scalahttp://www.apress.com/book/view/1430219890 > Follow me:http://twitter.com/dpp > Git some:http://github.com/dpp
--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~----------~----~----~----~------~----~------~--~---
