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

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to