RE: dynamic menu with show hide capabilities - understanding possible workflow

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

 



On Tue, 2009-10-27 at 10:25 +0000, MEM wrote:

> >I think the term drop-menu is bad in this case, as essentially what you are saying is:
> >
> >1) user is presented with the basic navigation menu
> >2) user clicks an item and page navigates somewhere else
> >3) because of the item user clicked in 2) display some extra menu items
> >
> 
> Exactly.
> 
> 
> >That's not a menu, it's just a navigation bar that changes slightly depending on where you are in the site...
> 
> Ok...
> 
> So the focus should not be on the click events, but on the URL changes.
>  
> Since it will be based on URL changes and not, on click/hover events, I can rely this navigation system entirely on php. Right?
> 
> If this is correct, the only think I need then, is to create a condition, to show/hide ul/li items based on:
> 
> a) the url changes.
> 
> OR
> 
> b) the existence or non-existence of child array elements that needs to be verified each time the user navigates to a page.
> 
> 
> 
> Is this correct?
> 
> 
> Thanks again,
> Márcio
> 


That sounds about right yeah. You could also get a little bit clever and
only retrieve the rows from your db that will go to make the array
elements you'll need. It doesn't make sense to retrieve a full product
list each time someone visits the page, so you only need to retrieve
those that the user is interested in, which is shown by what they click
on.

Thanks,
Ash
http://www.ashleysheridan.co.uk



[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