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


Groups > comp.lang.javascript > #33453

Re: Executing code pushed from the server

Newsgroups comp.lang.javascript
Subject Re: Executing code pushed from the server
From "Evertjan." <exxjxw.hannivoort@inter.nl.net>
References <769e8d95-b693-4d1c-ae54-07f273d1c331@googlegroups.com>
Date 2017-05-31 19:43 +0200
Message-ID <XnsA786C89DD9ACDeejj99@194.109.6.166> (permalink)

Show all headers | View raw


bit-naughty@hotmail.com wrote on 31 May 2017 in comp.lang.javascript:

> Is there any way some JS code can be SENT TO the client, upon a keypress
> at the server, and executed there? Like, people are on a website, and
> when the key is pressed on the server, they see something new happening
> inside their browser? I'm guessing this is something to do with
> EventSource and eval, but....*how* though? 

A server cannot initiate, it is there to "serve".

However, a web-page in a browser can poll the server and get any code and 
then execute it in the browser. [or even unsafely outside a browser, say in 
a cscript script.]

Whatsapp is an example.


-- 
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)

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


Thread

Executing code pushed from the server bit-naughty@hotmail.com - 2017-05-31 10:34 -0700
  Re: Executing code pushed from the server "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2017-05-31 19:43 +0200
  Re: Executing code pushed from the server Stefan Weiss <krewecherl@gmail.com> - 2017-05-31 20:25 +0200
    Re: Executing code pushed from the server bit-naughty@hotmail.com - 2017-06-01 09:35 -0700
      Re: Executing code pushed from the server Stefan Weiss <krewecherl@gmail.com> - 2017-06-09 04:54 +0200
  Re: Executing code pushed from the server Richard Maher <maher_rjSPAMLESS@hotmail.com> - 2017-06-01 06:39 +0800
  Re: Executing code pushed from the server bit-naughty@hotmail.com - 2017-06-09 08:54 -0700
    Re: Executing code pushed from the server Stefan Weiss <krewecherl@gmail.com> - 2017-06-10 02:13 +0200

csiph-web