jonathan,

thanks for the tip :) the intro is quite cool to read!

cheers,
Patrick

On Aug 7, 2008, at 12:07 PM, jonathan howe wrote:

Sounds like a job for recursion. Here's a tutorial I found:
http://www.cs.umd.edu/class/spring2002/cmsc214/Tutorial/recursion.html
I don't recommend the wikipedia page for recursion since it's very dense and
isn't designed to teach the basic concept.

-jonathan


On Sun, Sep 7, 2008 at 11:52 AM, Patrick J. Jankun <[EMAIL PROTECTED]> wrote:

Hello Everyone,

I run into a problem, something that probably a lot of people here knows
how to solve.
But after sitting for 2 days building nestes for loops, i can't see the
light by the end of the tunnel :-)

So, here is a problem:

I have to build an xml based navigation, so far, quite simple and clear.
Made it already a few times,
but, now, this is a bit more complicated, because i got a much deeper
nested sub levels, and i really
don't know how to efficient traverse the document and build the navigation
out of it :|

The most complex navigation i made had 2 levels, so it wasn't really hard
to imagine the code for this task:
2 for loops done the nav creation and that's it, but i got now, an
"undefined" deep, and i don't know how to
bite the code that will build the nav, that goes a bit deeper then one-sub
level.

Do you guys got any examples or thoughts on how to solve the task?
Im pretty sure that i got an logical error in my approach, since i will use
some nested for loops, but i can't
think the "formula" since i don't know how deep each of the nodes goes, and
this task gives me headaches.

any kind of help and pinpointing to right direction would be VERY
appreciated

cheers,
Patrick
------------------------------------------
fancy skills to pay the bills
www.jankun.org

Phone:  +43 660 96 969 - 01
web:    jankun.org
mail:   p[at]jankun.org

_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




--
-jonathan howe :: 404.434.2321 :: 180 High St Apt 26 Portland, ME 04101
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

------------------------------------------
fancy skills to pay the bills
www.jankun.org

Phone:  +43 660 96 969 - 01
web:    jankun.org
mail:   p[at]jankun.org

_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to