[Javascript] Create a menu in js. Understanding the workflow

David Dorward david at dorward.me.uk
Tue Oct 27 09:05:47 CDT 2009


On 27 Oct 2009, at 10:45, MEM wrote:

> Thanks David.
> I've got a killing comment on this, on the php side of things:
>
> Quoting:
>
> "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

If JavaScript is not available, yes. http://icant.co.uk/articles/pragmatic-progressive-enhancement/

Generally speaking, having menus that expand and contract on a single  
page isn't a good design decision, but it is what I understood you to  
be asking for, so it is what I described.

> That's not a menu, it's just a navigation bar that changes slightly
> depending on where you are in the site..."
>
> So maybe my focus should not be on the click event but on the url  
> changes?
>
> Putting the thinks like this, should I still think on js for this job?


It depends on the context. The vast majority of sites get along  
without having menus expanding within the page, and avoiding that  
'feature' keeps things simple — both for the author and the visitor.


-- 
David Dorward
http://dorward.me.uk




More information about the Javascript mailing list