> On Sep 17, 2016, at 5:13 PM, ABC DEF <recalcitrantbogg...@gmail.com> wrote:
> 
> I'm pretty new to this, and it seems every question is off-topic on 
> stackoverflow, so I'll ask here and if it is still off-topic here, may you 
> direct me to somewhere where it is relevant?
> 
> I have a distant Java server that transfers data to a Node socket. I need to 
> manipulate and use this data so that it appears on the webpage in a different 
> form, the manipulation of which can only be done on the client-side 
> JavaScript. Node accesses HTML which accesses JavaScript, so there is a lot 
> of (seemingly needless) depth involved and I'm finding it incredibly 
> difficult to get this data onto the JavaScript side. 
> 
> What can JavaScript to to read and clear a file/variable which Node also can? 
> It seems that JavaScript is very limited by what it can do, which makes this 
> problem a heavy challenge for me.
> 
> Would the best way to be to set a variable in HTML to "input" and get Node to 
> write the data to it when it is received, and somehow get JavaScript to read 
> that variable and set it blank when it is done with it? Some intuition would 
> be appreciated. Thanks.

It's hard to know if your question is on-topic because it's very confusing.

Node is a server-side JavaScript runtime. It can be used to run JavaScript code 
on the server. Often, people use that capability to create a web server. That 
web server can produce HTML and send it to a client (i.e. web browser) which 
interprets and displays it the same way it would were it received from any 
other web server stack (e.g. Apache or Nginx, possibly having been generated by 
PHP, etc.). Your web server that you create in JavaScript and run with Node can 
of course send other types of files to the client (web browser) as well, such 
as images, stylesheets or JavaScript scripts, which the browser will interpret 
the same way it always does.

The JavaScript language is perfectly powerful, and the Node runtime is a great 
place to run JavaScript on the server, especially when combined with 
pre-written npm modules. JavaScript in a web browser is more limited by 
necessity of the security concerns inherent in running untrusted code. You 
wouldn't want any random web site you visit to be able to have direct access to 
the files on your disk, for example, so a web browser doesn't allow JavaScript 
to do that, but JavaScript in Node doesn't have those limitations.

So, what, specifically, is the data you are sending from your remote Java app 
to your Node JavaScript app? Can you give an example? And then, in what format 
does it have to appear on the web page? Can you show any code of what you've 
done so far, and show us what it currently outputs or does and what you want it 
to output or do instead?

-- 
Job board: http://jobs.nodejs.org/
New group rules: 
https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to nodejs+unsubscr...@googlegroups.com.
To post to this group, send email to nodejs@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/nodejs/6392C4BB-DCE9-4F2B-9BF1-FFD47A406945%40ryandesign.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to