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


Groups > comp.lang.javascript > #36112

Re: Server side JS programming

From Thomas 'PointedEars' Lahn <PointedEars@web.de>
Newsgroups comp.lang.javascript
Subject Re: Server side JS programming
Date 2019-03-13 15:36 +0100
Organization PointedEars Software (PES)
Message-ID <6efb8bff-d77d-b092-e139-ddac798e9777@PointedEars.de> (permalink)
References <22440663-d4d8-496c-926c-b1af146faaa5@googlegroups.com>

Show all headers | View raw


groovee@cyberdude.com wrote:
^^^^^^^^^^^^^^^^^^^^^
How "funny".  Get a real name if you want to be taken seriously from now on.
And be aware that you are talking to potential colleagues, but *strangers*.

> I think I've asked this question before over here, but it seems to have slipped my mind what was said - I'd like to know: is there any way to do server side programming in JS to generate a webpage, with the code bits "inserted" into the HTML bits, like <?php does for PHP?

There has been Server-side JavaScript on Netscape Enterprise Server and its
successors.

Nowadays only ASP (.NET) with JScript (.NET), and Node.js with Google V8
JavaScript come to mind.

<http://pointedears.de/es-matrix/#version-info>

(not up-to-date)

> Otherwise, how would you say, print stuff from a MySQL database (assuming you're using node.js) on a webpage?

This is not “otherwise”, so I do not follow.

> You'd need some way to separately print the MySQL data, and *then* (if it comes afterwards) print the rest of the HTML. 

No, you can wait for the data to arrive.  Also, you can only query and
display chunks of the data, and cache them server-side and client-side.

> Ugh! This is Horrifying! Surely there must be a better solution?

Usually chunking and/or AJAX/XHR/Fetch is the proper solution nowadays.
The programming language used server-side is secondary.

-- 
PointedEars

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

Server side JS programming groovee@cyberdude.com - 2019-03-12 06:17 -0700
  Re: Server side JS programming "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2019-03-12 22:03 +0100
    Re: Server side JS programming groovee@cyberdude.com - 2019-03-13 06:14 -0700
      Re: Server side JS programming "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2019-03-13 15:14 +0100
  Re: Server side JS programming Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2019-03-13 15:36 +0100
    Re: Server side JS programming groovee@cyberdude.com - 2019-03-14 07:04 -0700
      Re: Server side JS programming Jon Ribbens <jon+usenet@unequivocal.eu> - 2019-03-15 12:25 +0000
        Re: Server side JS programming "Mark-" <nospam@mapson.xyz> - 2019-03-15 12:49 +0000
        Re: Server side JS programming Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2019-03-17 16:02 +0100
          Re: Server side JS programming John G Harris <niam@jghnorth.org.uk.invalid> - 2019-03-17 15:34 +0000
          Re: Server side JS programming "Mark-" <nospam@mapson.xyz> - 2019-03-17 17:06 +0000
          Re: Server side JS programming groovee@cyberdude.com - 2019-03-17 20:32 -0700
            Re: Server side JS programming "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2019-03-18 12:49 -0700
              Re: Server side JS programming groovee@cyberdude.com - 2019-03-19 06:20 -0700
                Re: Server side JS programming Jon Ribbens <jon+usenet@unequivocal.eu> - 2019-03-19 14:23 +0000
                Re: Server side JS programming "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2019-03-19 12:05 -0700
            Re: Server side JS programming Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2019-03-19 18:23 +0100
  Re: Server side JS programming Jon Ribbens <jon+usenet@unequivocal.eu> - 2019-03-13 15:22 +0000
  Re: Server side JS programming "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2019-03-13 19:16 -0700
    Re: Server side JS programming groovee@cyberdude.com - 2019-03-14 07:00 -0700
  Re: Server side JS programming groovee@cyberdude.com - 2019-03-19 13:52 -0700
    Re: Server side JS programming "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2019-03-19 23:15 +0100

csiph-web