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
0
votes
2 answers

Socket.io doesn't work

This is my server.js: var app = require('express')(); var server = require('http').Server(app).listen(8080,function(){ console.log('working'); }); var io = require('socket.io')(server); app.get('/',function(req,res){ …
herovoe
  • 1
  • 1
  • 2
0
votes
2 answers

Html 2 png using FF engine

I would find some example uses of FireFox engine to generate graphic file (it can be png) on server site with using browser engine. I would like achive the same image as if i open this html file in browser and use prinscr.
0
votes
0 answers

Javascript code in the server-side in MongoDB

I need to process 100s of Gigas of DB on the Server Side and the way I'm doing it right now is by loading a JS file with the shell. i.e: mongo ipaddress:27017/database_name script.js This works fine but problem is I can see that the data is being…
jhagege
  • 1,486
  • 3
  • 22
  • 36
0
votes
2 answers

Stating a Node.js project: Is there only one "server file" in node.js?

I'm in a team project, and my team is slacking, so I'm going to take the lead and start off the repository. We are all new to node.js and come from other backgrounds. There is only 1 "server," right? So the main file (unsure of what's a standard…
User
  • 23,729
  • 38
  • 124
  • 207
0
votes
1 answer

ReactServer#RenderToString not rendering correctly

I'm trying to accomplish server side rendering with React components in Express and templating with Jade. However I'm running into some issues. Here is my server code, the entry point. var app = require('express')(); var http =…
user3200167
0
votes
0 answers

I'm getting the same message multiple times when using React. Does this mean I'm loading React multiple times?

In my console I get this message 3 times when I load a page: Download the React DevTools for a better development experience: https://fb.me/react-devtools Since it's appearing 3 times does this mean I am loading React 3 times? Please note, I am…
Nathan Lin
  • 51
  • 4
0
votes
1 answer

Server-side JavaScript --> Simple Dynamic Site

Note: This is not about the merits/demerits of SSJS I am only asking if you think it is possible to create a simple dynamic site strictly using some form of SSJS. I am in no position to do any arguing (0 programming experience) -- I can only give…
0
votes
0 answers

TypeError: Router.use() requires middleware function but got a Object in recent Express

First I am aware that the same exact questions appears here in Stackoverflow, so please bear with me. So I am using node.js, express and mongoose and I get this error whenever I try to start the server using node app The error is TypeError:…
0
votes
0 answers

Reading and writing to a txt file on the server, using Javascript

Is it possible to modify and read a text file that is stored on the server using Javascript? If so how can I do it? Free web space does not let me use php so I'm trying to use txt as a database.
WVrock
  • 1,725
  • 3
  • 22
  • 30
0
votes
1 answer

server side rendering for react, webpack, node project breaking because 'window' undefined

I get the following error when trying to do server-side rendering with components that reference window. For example when I include slick-carousel (https://github.com/kenwheeler/slick) I get the following error: var Slick = window.Slick || {}; …
0
votes
0 answers

Is it possible to follow the Michael Hartl tutorial on windows 8 64 bit?

WARNING! I am a complete newb to programming... problem: ok so I've searched and seen ever solution I could find on getting ruby on rails to work properly on my machine with windows 8 64 bit with no success. as of today what is the best version of…
0
votes
1 answer

XPage Link URL does not work in Notes Client

I added a simple link to a sample xpage to open a web URL (sample: Google). The code work fine when I open the Webpage in a web browser but acts differently when I open the Xpage in the Lotus Notes Client. It only sends a blank screen and did not…
0
votes
2 answers

Why isn't my NodeJS Web Server Fetching Files from my Directory?

I created a BasicWebServer.js file which lives in the folder portfolio-website and this folder has the following files: index.htm, BasicWebServer.js, css/style.css. The code I put in the BasicWebServer.js file is as following: var http =…
roadtocode
  • 329
  • 5
  • 13
0
votes
1 answer

How do I host a website that depends on node.js?

When running the site locally, I include all my node files in the same folder as the index.html file and then from the console I run the server side js which is node-dependent. So in hosting this online, do I upload all the node files into the…
Coder
  • 97
  • 6
0
votes
1 answer

URL Decoding with Serverside JS in ASP

I have a problem which is due to to IIS turning off + as spaces in querystrings. We have clients posting some data to a hidden page as a querystring (jobs) and they sometimes post jobs with things like C++ in them etc - as they are passing the data…