Questions tagged [serverside-javascript]

Server-side JavaScript is a set of techniques allowing to build JavaScript applications directly on the server.

Server-side JavaScript is a set of techniques allowing to build JavaScript applications directly on the server.

The most popular server-side JavaScript project is node.js, built on Chrome's JavaScript runtime, V8.

Other server-side JavaScript environments include Jaxer and Narwhal.

CommonJS project also provides a set of APIs which can be used outside the browser.

412 questions
14
votes
3 answers

JavaScript callbacks and functional programming

"Functional programming describes only the operations to be performed on the inputs to the programs, without use of temporary variables to store intermediate results." The question is how to apply functional programming and yet use async modules…
14
votes
3 answers

Confusion about CPU intensive code in Node.js

A question regarding "everything runs in parallel except your code" from someone new to Node.js. This is an obviously artificial example, but let's say I want to create a math library containing a function factorize() which behaves as follows: var…
YXD
  • 31,741
  • 15
  • 75
  • 115
14
votes
4 answers

Server side javascript on Google app engine

Is there any way to run a Javascript engine, like Spidermonkey, on Google App Engine? Spidermonkey is a C module, so obviously that wont work (GAE doesn't allow those types of modules)... is there something else available?
13
votes
7 answers

why server side Javascript is not widely used?

we know JavaScript is one of the most popular and widely used language in front end.i wonder it is not widely used in back end ?
S.M.Karthick
  • 129
  • 1
  • 5
13
votes
2 answers

Rendering React components with styles on the server

I'm using React for my components, and in order to package up the styles with my components, I'm requiring them in as per the documented webpack method: require('./style.css'); But when I try to render on the server, node-jsx throws an error when…
user2309185
  • 388
  • 1
  • 4
  • 10
12
votes
6 answers

Is there a way to test circular reference in JavaScript?

I'm making a game, and I've come across a problem... When I try to save, JSON fails and reports that circular reference is being made somewhere. I don't think it actually is, I can't see it, so is there an algorithm or anything which could tell me…
corazza
  • 31,222
  • 37
  • 115
  • 186
12
votes
2 answers

Upload file using NodeJS and node-formidable

I succeed uploading file using node.js and the formidable module yet, the file that got save on the disk is in some kind of a bad format ( bad encoding) e.g. if I upload an image I can't view it, if I upload a txt file gedit provide the following…
KingDave
  • 131
  • 1
  • 1
  • 4
11
votes
5 answers

Libraries to write xml with JavaScript

I am doing some server side coding with JavaScript (node.js) and I would like to write valid xml. I found two libs, but I am sure there are more/better!? http://goessner.net/download/prj/jsonxml/ (LGPL) not yet released:…
Karussell
  • 17,085
  • 16
  • 97
  • 197
11
votes
2 answers

Netscape Enterprise Server and Server-Side JavaScript (SSJS) vs Node.js

What are the major differences between the Netscape Enterprise Server implementation of Server-Side JavaScript (SSJS) and the node.js implementation? Why did not Netscape's implementation gain attention while the node.js seems to be far more…
Handsome Nerd
  • 17,114
  • 22
  • 95
  • 173
11
votes
3 answers

node.js: Accessing local variables from another module

My Problem I'm writing a node module called a, which require()s a module b (written by a stranger). Unfortunately, a doesn't only need to access the public members - it also needs to access local variables declared in the scope of the module. //…
fridojet
  • 1,276
  • 3
  • 15
  • 29
10
votes
5 answers

SocketIO Identify what user disconnected

I am making a simple Node.js game that uses Express, Socket.io, and an Http server. All of the users are stored in a multidimensional object on the server. This is how the server-side code works: var express = require('express'); var app =…
Weastie
  • 113
  • 1
  • 2
  • 7
10
votes
1 answer

How do you use Java to call the Rhino Javascript interpreter?

is there any example on using java method to call rhino-javascript function and return it back to java? The only example i found for rhino is only typing command on the rhino shell.
cometta
  • 35,071
  • 77
  • 215
  • 324
9
votes
2 answers

How to debug and log own code on the server side of Meteor?

Never mind. The reason this did not work: I forgot to meteor reset so debugger did not get a chance to stop. Duh! More info: I am using the method in the answer by Mason Chang to the related question, not the kill -s USR1 [proc_id] (where I could…
8
votes
1 answer

ReactJS server side rendering fo single page application

What I've already done I have a frontend entirely built with React.JS. All the business logic is handled by Django and exposed by Django REST Framework via an API. I'm able to build for different mobile environnements (Android and iOS via…
8
votes
6 answers

jQuery server side DOM manipulation

Does anyone know if it is possible to leverage the power of JQuery on the .Net serverside? For example I have some HTML as a String in some code behind. Is there a way to execute JQuery on it? I'm currently doing this... Assume this is the…
ctrlShiftBryan
  • 27,092
  • 26
  • 73
  • 78
1 2
3
27 28