dynamic menu with show hide capabilities - understanding possible workflow

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello all,

I'm on my way to build my first dynamic menu using php.
However, each time I say this, people start jumping at me crying out loud:
"Jquery" .
I don't need js for this. Really. (At least, this is what I believe).

So I was wondering if It's possible to accomplish it, by using css and php
only.


If so, I'm wondering if something like this it's a good way for doing this:

1)
Generate a multidimensional array from database table containing categories
and subcategories.

2)
Create a css file with two classes one that shows, another that hides.

3)
Grab that array and: 
 3.1) print it recursively (no idea how to accomplish this)
 3.2) print it with some sort of class="showThis" inside the generated html
element.
 3.3) make a conditional somewhere (I really don't know where, and this may
be related with the recursion doubt), in order to display the children
elements, only when we click the parent element.

And here resides my main doubt: Is the point 3.3 feasible without the use of
js?



I just need some directions please,

Regards,
Márcio



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux