You could always build your page in-memory and use innerHTML or
document.write. But, this would be extremely hard to read.
This sounds like a very complex task. Have you thought of using server-
side programming to solve this? The benefit of this is that you could
keep your pages sepaarated, and use the server code to serve up
whatever page is required. I use Java myself, so I'd use a combination
of Java, Servlets, and JSPs in an app server. Others here use ASP
technology in .NET, others use PHP, etc. Find something you like and
make a great - and readable - project.
--Tim Sabin
> I'd like to build a dynamic menu that relies on keywords, as a page
> specific sub-menu. Let's say each item of this sub-menu has a set of
> keywords and each page to has its keywords, so that when page X is
> pulled up only menu items with a matching keyword X (or keywords X
and
> Y; or X, Y and Z) are displayed in the menu.
>
> For example, on all public pages a "login" menu item might appear.
> But when a member has logged in the "login" item no longer matches
the
> keywords list, but a new "logout" item does. Or on a "services" page
> only links related to the services appear in the sub-menu, but
perhaps
> when a member is logged in additional services menu links appear in
> the sub-menu.
>
> The context here is that the sub-menu is part of a header include
file
> across all pages, so simply making it plain HTML won't do.
>
> Has anyone found something like this online already?
>
> I guess I'd call this a tagged link menu or keyword based menu,
unless
> someone can tell me what it's actually called so I can research more
> myself.
>
>
>
> Visit http://aiaiai.com for more groups to join
> Yahoo! Groups Links
>
>
>
>
>
--Tim Sabin
.