Article View: comp.lang.javascript
Article #33Re: menus in one place ?
From: Thomas 'PointedEars' Lahn
Date: Wed, 18 Nov 2026 23:29
Date: Wed, 18 Nov 2026 23:29
24 lines
2052 bytes
2052 bytes
Dale wrote: > I am looking into having my Main Menu and any Submenus in one file so I > don't have to edit all files when I change the Menus. > > https://www.dalekelly.org/ > > Will be browsing around. While it /could/ be done with Server-Side Includes, it is best done with server-side scripting nowadays. I would prefer PHP, but YMMV. It /could/ also be done with client-side scripting at the expense of interoperability and some maintainability: In every HTML document that needs to contain the main menu, include a `script` element that inserts the main menu. I recommend against that. You are probably best off using a CMS that generates that menu for you, like WordPress (which is PHP-based). -- PointedEars Twitter: @PointedEars2 Please do not cc me. / Bitte keine Kopien per E-Mail.
Technical Details
Message-ID:
<11dlccg$l0qg$1@gwaiyur.mb-net.net>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!.POSTED!not-for-mailReferences:
<daacnQAmGbMyxG73nZ2dnZfqnPadnZ2d@supernews.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!.POSTED!not-for-mail From: Thomas 'PointedEars' Lahn <PointedEars@web.de> Newsgroups: comp.lang.javascript,alt.comp.lang.javascript Subject: Re: menus in one place ? Followup-To: comp.lang.javascript Date: Thu, 19 Nov 2026 00:29:18 +0100 Organization: PointedEars Software (PES) Message-ID: <11dlccg$l0qg$1@gwaiyur.mb-net.net> References: <daacnQAmGbMyxG73nZ2dnZfqnPadnZ2d@supernews.com> Reply-To: Thomas 'PointedEars' Lahn <usenet@PointedEars.de> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Injection-Date: Wed, 18 Nov 2026 23:29:20 -0000 (UTC) Injection-Info: gwaiyur.mb-net.net; logging-data="688976"; mail-complaints-to="abuse@open-news-network.org" User-Agent: Betterbird (Windows) Cancel-Lock: sha1:z9ZaZMfy+Kl7S2neNfhlylVKnIw= sha256:Sbfa8qZ3BFyi6sIj12+z8YAwgHOLZ6KpIpNnn8lvOFM= sha1:Dj6/wKR3cy0MZzmqxZ4hOdwlEDM= sha256:eWQhuoFehGJAMc9MXsLoPg7m7y3su3g7ZDvpy63pLWQ= Content-Language: en-US, de-CH, de-DE In-Reply-To: <daacnQAmGbMyxG73nZ2dnZfqnPadnZ2d@supernews.com>