Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #33532

Re: Looking for JS library that can do hierarchical menus

Path csiph.com!weretis.net!feeder4.news.weretis.net!news.mb-net.net!open-news-network.org!.POSTED!not-for-mail
From Thomas 'PointedEars' Lahn <PointedEars@web.de>
Newsgroups comp.lang.javascript
Subject Re: Looking for JS library that can do hierarchical menus
Date Fri, 16 Jun 2017 17:03:23 +0200
Organization PointedEars Software (PES)
Lines 48
Message-ID <10853112.O9o76ZdvQC@PointedEars.de> (permalink)
References <5f50f2f4-0e30-4e62-8ce1-6cb843d96432@googlegroups.com> <21a4c938-9355-4718-ada6-4e503ad95c67@googlegroups.com> <XnsA7968006D1E57eejj99@194.109.6.166> <ba235063-491f-4dc7-a87b-5ed4b7f2be28@googlegroups.com> <oi0q4n$9ad$1@dont-email.me>
Reply-To Thomas 'PointedEars' Lahn <cljs@PointedEars.de>
NNTP-Posting-Host 11.237.197.178.dynamic.wless.lssmb00p-cgnat.res.cust.swisscom.ch
Mime-Version 1.0
Content-Type text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding 7Bit
X-Trace gwaiyur.mb-net.net 1497625405 14429 178.197.237.11 (16 Jun 2017 15:03:25 GMT)
X-Complaints-To abuse@open-news-network.org
NNTP-Posting-Date Fri, 16 Jun 2017 15:03:25 +0000 (UTC)
User-Agent KNode/4.14.2
X-Face %i>XG-yXR'\"2P/C_aO%~;2o~?g0pPKmbOw^=NT`tprDEf++D.m7"}HW6.#=U:?2GGctkL,f89@H46O$ASoW&?s}.k+&.<b';Md8`dH6iqhT)6C^.Px|[=M@7=Ik[_w<%n1Up"LPQNu2m8|L!/3iby{-]A+#YE}Kl{Cw$\U!kD%K}\2jz"QQP6Uqr],./"?;=4v
Face iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAGFBMVEXTxa4RFk5dUWANED8PFEfy7+MGBiW+n3ZNF/QuAAACaElEQVQ4jVXUwVOcMBQG8Dc7Rc4PUntdWV2uxjDpGaGeozOp1woar4jd5t/v9wLstMwsA/ntlxdCAgUc1hjTc9/JCZfGoo3wG3HdmdAWrIJRHe7GM/TmpY5VFefuVcAkkPbLIaN8rmPmjloyZxgyR3GuJ4K0AGtJ2htz8o7yqikm759fldQXaMpbDzjKAG+8v+AugVTOPO5DOjLvGtUYQwh0CPjnVMyGd+8/GfUB5nLKJDD2aLDh5HYyMDJGDwQIo2ZmZcKbowNmAdB/AzyFhrmF2MHRb0QJJfaAnwGB6orZhoykLzJtGwF/xpYxI1dswomiUj3gTuAIqCn/4C7cULwGNBtwMTk3Y4LfKB5YUaOKBKYtpplm7u0vip8tU1NWWyI/7XdcSuIDoMt6rVHMWT0DbjHPGqDqZVSa6zleLcUTcIKLoMv3ueJluALtAo9B302zPPlrtiVScRdCjXvVh3e3JpYa/jjkuC9N+LrBMlz/eAN4eQijX2EdLo6c5tGGHwLyHFtXk89dDGHwCVhG9T0S/j55AhRZgkMCmUQXJ49TnS1wnQDvw0eAh9ICeMmEFbCnPMFzjAvsWoEWEFdYEx+S0MoUZ1gT1wId8+AF3Bl2OoEu906AUHx5VLw/gXYg/x84loOah/2UYNrgiwSwGO7RfUzVBbx/kgpckumGOi6QirtD6gkLTitbnxNol47S2jVc2vsN5kPqaAHT8uUdAJM4v/DanjYOwmUjWznGfwB7sGtAtor5BgofDuzaRj4kSQAqDakTsKORa3Q3xKi3gE1fhl71KRMqrdZ2AWNNg/YOhQyrVBnb+i+nEg4bsDA+egAAAABJRU5ErkJggg==
Xref csiph.com comp.lang.javascript:33532

Show key headers only | View raw


Gregor Kofler wrote:

> Am 2017-06-16 um 15:36 schrieb Haddock:
>> Am Freitag, 16. Juni 2017 12:35:48 UTC+2 schrieb Evertjan.:
>>> You do not need a [clientside] js library for that.
>>>
>>> Use serverside includes to have partly the same code on all your pages,
>>> and finetune these with serverside coding.
>> I see. Does this mean I need a web server? This is what I would like to
>> avoid, because this will make the hosting provider charge much more money
>> and what I want to do is just a private homepage and not a big company
>> homepage or something ;-).
> 
> You (or your hosting provider) already "have" a web server. What you
> need is some server-side scripting language like PHP. If you have a
> provider which charges "much more money" when you need basic PHP support
> then find another hosting provider who doesn't.

If all you know is a hammer, then every problem looks like a nail.

They definitely do *not* need server-side scripting on the remote server for 
this. 

1. Server-side Includes (SSI), as suggested, may be supported.  For example, 
   they are a feature of the Apache HTTP Server and just need to be enabled.

   <https://httpd.apache.org/docs/current/howto/ssi.html>

2. If SSI are not supported on the remote host, and cannot be enabled, it is
   less expensive to use SSI or server-side scripting to generate static
   HTML documents locally, which are then uploaded, until such time that the
   funds for SSI or server-side scripting on the remote host are available.

3. To generate the same menu in all the HTML documents using SSI or 
   scripting is not a requirement, but a *convenience*.  If all else fails,
   the menu markup can still be copy-pasted.

4. Depending on the other requirements of the Web site, the same menu in all
   HTML documents can be generated with client-side scripting as well.  That 
   is, nothing is lost if the menu is generated with client-side scripting 
   if the Web site requires client-side scripting.  Even Google understands
   JavaScript (sic) now.

-- 
PointedEars
FAQ: <http://PointedEars.de/faq> | <http://PointedEars.de/es-matrix>
<https://github.com/PointedEars> | <http://PointedEars.de/wsvn/>
Twitter: @PointedEars2 | Please do not cc me./Bitte keine Kopien per E-Mail.

Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Looking for JS library that can do hierarchical menus Haddock <ffm2002@web.de> - 2017-06-14 08:34 -0700
  Re: Looking for JS library that can do hierarchical menus Maik Koenig <usenetspam@maikkoenig.de> - 2017-06-15 01:31 +0200
    Re: Looking for JS library that can do hierarchical menus Cezary Tomczyk <cezary.tomczyk@gmail.com> - 2017-06-15 07:47 +0200
  Re: Looking for JS library that can do hierarchical menus Haddock <ffm2002@web.de> - 2017-06-16 00:13 -0700
    Re: Looking for JS library that can do hierarchical menus "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2017-06-16 12:35 +0200
      Re: Looking for JS library that can do hierarchical menus Tim Streater <timstreater@greenbee.net> - 2017-06-16 11:40 +0100
      Re: Looking for JS library that can do hierarchical menus Haddock <ffm2002@web.de> - 2017-06-16 06:36 -0700
        Re: Looking for JS library that can do hierarchical menus Gregor Kofler <usenet@gregorkofler.com> - 2017-06-16 16:35 +0200
          Re: Looking for JS library that can do hierarchical menus Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2017-06-16 17:03 +0200
          Re: Looking for JS library that can do hierarchical menus Mark Lloyd <not@mail.invalid> - 2017-06-16 13:53 -0500

csiph-web