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
1 answer

Is v8cgi via FastCGI possible in IIS7 and how?

Is it possible to run server-side JS in IIS7 using v8cgi via FastCGI? I already have FastCGI setup in IIS7 and know how to setup up PHP via FastCGI for IIS7 like this…
Nic Bell
  • 513
  • 2
  • 7
0
votes
1 answer

Connect server script to page to add new data to spreadsheet

I have a server code to connect to a page that staff use for entering new customers details. The page also inherited from Google Drive Tables with same fields as a page and sheet. Unfortunately, I don't know how to connect my server code to my page…
0
votes
1 answer

How to make client side script variable dynamic within a repeat

I am trying to output som script using SSJS from a computedField like so: var outScript = "" The problem I have is that the computedField is within a doccollection repeat so I need to make the…
Thomas Adrian
  • 3,543
  • 6
  • 32
  • 62
0
votes
1 answer

Need JS regular expression for the following string

I need Javascript regular expression for the following Hex…
A.R
  • 409
  • 8
  • 21
0
votes
1 answer

Socket.io issue: initializing a ton of clients using 'xhr-polling'

I'm trying to get socket.io set up and I'm running into what I'm 90% sure is a problem. I am running my server, it says its connected then I get a flurry of new clients that come in after 2-3 seconds. Here's my terminal output: 21 Dec 17:36:53 -…
Matt
  • 22,224
  • 25
  • 80
  • 116
0
votes
0 answers

Using javascript for back-end with google cloud storage?

I have read that Javascript can be used for back-end of a website, so like server side scripting. I have seen here that nodejs is accepted by Google cloud storage but using node js which confuses me as I don't know how to use it with a website in a…
0
votes
3 answers

How to return a viewEntryCollection in random order

I have the following code var vec:ViewEntryCollection = database.getView("view").getAllEntriesByKey("Mykey",true) how can I make "vec" in random order using SSJS (or java) so that I get a new order every time?
Thomas Adrian
  • 3,543
  • 6
  • 32
  • 62
0
votes
1 answer

Why is my app hanging on localhost?

I have recently built an MVC (well, more like a VC app) app in NodeJS and Express. Everything was working fine until I installed express-validator and pasted the middleware in the app file. Afterwards, localhost began hanging, with a GET / - - ms -…
0
votes
0 answers

Using node.js to create an html file

I'm fairly new to using none basic code (I.E. jquery, node.js,and the like) And I couldn't find a way to create and save an html document on the server. I've been told that node.js has no DOM manipulation, but does it have what it needs to make an…
Spencer Cornwall
  • 289
  • 2
  • 14
0
votes
0 answers

windows is not defined

I am trying to do some server side rendering in my React app, the problem is that I use packages like vivus or react-inlinesvg and they use the window variable inside them, and all I get is the error of window is not defined. Is there any way to…
mdmb
  • 4,833
  • 7
  • 42
  • 90
0
votes
2 answers

how to get the path of cookies using ssjs?

I am trying to get the path of a cookie I have several cookies with the same name but with different paths. The following example return null using the getpath() method var request = facesContext.getExternalContext().getRequest(); var cookies =…
Thomas Adrian
  • 3,543
  • 6
  • 32
  • 62
0
votes
1 answer

AJAX controller not looping through each file and saving in location. Only doing the first file upload

My below code is only uploading the first file in an array to the path location. Can anyone see what is wrong with my server side controller: private static String UPLOADED_FOLDER = "C://temp//"; @RequestMapping(value = { "/fileUpload" }, method =…
RA19
  • 709
  • 7
  • 28
0
votes
1 answer

Ajax request looping correctly but not sending to the server for more multiple files. Only saves one file in the array

I have an ajax request which is working as I am able to see the number of files, the file names and the looping. I am trying to get these saved to a local folder on my computer. I have an @RequestParam for two variables, a number (string) and files…
RA19
  • 709
  • 7
  • 28
0
votes
1 answer

Server Side vs Client Side Data Manipulation for use with Reddit API

I'm building a pretty straightforward Node/Express web app that pulls in data from the Reddit API, does some manipulation on it, and then plan to visualizes said data through Charts.js client side. However, being relatively new to fullstack dev…
0
votes
2 answers

Invoking Java function using Javascript runing on tracemonkey, SquirrelFish extreme or V8

I wonder how can I add JS support to the Java application I'm developing. The only thing that matter is that eventually, the JS will be able to invoke Java functions. While searching the web, I've found that tracemonkey, SquirrelFish extreme and V8…
Eldad
  • 1
  • 1