Hi Jan

Thanks for the answer and excelent examples and tools!

I found the resultIterator in your Yahoo! example useful for this
issue as I think the app will break in cases where there are no
children.

regards
tan


On Sep 28, 8:28 pm, Jan Odvarko <[EMAIL PROTECTED]> wrote:
> Hi Tan,
> try the following script.
> Notice that you can test it online 
> here:http://www.softwareishard.com/domplate/runner/index.php
> Honza
>
> var template = domplate(
> {
>   tag: DIV(
>          FOR("object", "$page.object",
>              FOR("sub", "$object",
>                 DIV("value: $sub")
>              )
>          )
>      )
>
> });
>
> var input = {
>     object: [
>       [1,2,3,4],
>       [11,22,33,44],
>       [111,222,333,444],
>     ]
>
> }
>
> template.tag.replace({page: input}, parentNode, template);
>
> On Sep 28, 7:56 pm, tan <[EMAIL PROTECTED]> wrote:
>
> > Hi
>
> > How can I start a new loop in my current loop
>
> > I have
>
> > DIV("", FOR("object", "$page.object", DIV("$object.name"), FOR( "sub",
> > "$object.sub", DIV("print something") )        )   )
>
> > but that does not seem to do the trick.
> > I need to know about the current page.object in the iteration like
> > object[i] but I can not figure out how to get it.
>
> > Any help suggestions are welcome
>
> > regards
>
> > Tan
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Firebug" 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/firebug?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to