Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #21963
| Message-ID | <1778804.q0Nx8XmBib@PointedEars.de> (permalink) |
|---|---|
| From | Thomas 'PointedEars' Lahn <PointedEars@web.de> |
| Organization | PointedEars Software (PES) |
| Date | 2013-11-11 17:32 +0100 |
| Subject | Re: Is it possible to pop up windows in node.js? |
| Newsgroups | comp.lang.javascript |
| References | <d1a010fc-4554-4677-ad22-b8351e7e24e2@googlegroups.com> <711754ff-1c48-4377-a327-3d5c4b49fad9@googlegroups.com> <7844568.JiaYqQEp0h@PointedEars.de> <bc18d773-6749-49e9-890d-8dd0b76cf6f3@googlegroups.com> |
Michael Haufe (TNO) wrote:
> Thomas 'PointedEars' Lahn wrote:
>> How do you “pop-up windows *in* node.js”?
>
> By the usual way for a traditional HTML browser <-> server setup using a
> request/response relationship. Off the cuff:
>
> var http = require("http");
> var server = http.createServer(function(request, response) {
> response.writeHead(200, {"Content-Type": "text/html"});
> response.write(
> "<!DOCTYPE html>" +
> "<html lang='en' dir='ltr'>" +
> "<head>" +
> "<met charset='utf-8'>" +
> "<title>Hola Mundo</title>" +
> "</head>" +
> "<body>" +
> "<script type='text/javascript'>alert('Hello World')</script>" +
> "</body>" +
> "</html>");
> response.end();
> });
>
> server.listen(80);
Because I expected something simple like this, I had emphasized *in*. This
is not popping up a window *in* node.js, it is popping up one *with the help
of* node.js.
> For a non-server setup: one can use the functionality of one of the
> numerous GUI frameworks:
>
> <https://github.com/zcbenz/node-gui/#a-simple-example>
ACK. It is, however, not enough to justify your “yes”.
--
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
Is it possible to pop up windows in node.js? bit-naughty@hotmail.com - 2013-11-09 07:42 -0800
Re: Is it possible to pop up windows in node.js? "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2013-11-10 23:24 -0800
Re: Is it possible to pop up windows in node.js? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-11-11 10:16 +0100
Re: Is it possible to pop up windows in node.js? "Evertjan." <exjxw.hannivoort@interxnl.net> - 2013-11-11 12:31 +0000
Re: Is it possible to pop up windows in node.js? "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2013-11-11 08:26 -0800
Re: Is it possible to pop up windows in node.js? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-11-11 17:32 +0100
Re: Is it possible to pop up windows in node.js? "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2013-11-11 10:06 -0800
Re: Is it possible to pop up windows in node.js? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-11-11 20:21 +0100
Re: Is it possible to pop up windows in node.js? "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2013-11-11 12:49 -0800
Re: Is it possible to pop up windows in node.js? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-11-11 22:52 +0100
Re: Is it possible to pop up windows in node.js? "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2013-11-11 17:14 -0800
csiph-web