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

White screen flickering issue when page is loaded - React - SSR

I am facing an issue in my React Web App. I am using Server-side rendering and redux with React. Here is what happens: Request for a page (let's say /about) Browser loads and renders the server side document content (since i am using SSR). A white…
5
votes
1 answer

Server Side Javascript On Apache Server

We intend to use Apache server for web development. For serverside scripting we wish to use server side javascript. What is needed to make serverside javascript work on Apache server? Is SSJS recommended to use for serverside scripting? Where can…
5
votes
3 answers

Server side Javascript best practices?

We have a CMS built on Java and it has Mozilla Rhino for the server side JS. At the moment the JS code base is small but growing. Before it is too late and code has become a horrible mess I want to introduce some best practices and coding…
Petteri H
  • 11,779
  • 12
  • 64
  • 94
5
votes
7 answers

How is server-side javascript used/implemented?

I'm aware of server-side javascript for a long time now, but I don't have a clue about how it works. Could someone point me in the right direction? I'm interested in how to use server-side javascript + Java Servlet technology EDIT Great! I have…
OscarRyz
  • 196,001
  • 113
  • 385
  • 569
5
votes
1 answer

Retrofitting an existing Backbone app for server-side rendering with node.js?

I have a web app whose current structure is to render everything in the browser with backbone.js and client-side templates, pulling all dynamic content from a Python-powered JSON API. Some of the app is content-y enough that I wouldn't mind serving…
Andrew Pendleton
  • 761
  • 5
  • 13
5
votes
1 answer

MongoDB: mapReduce side-effects

During the development of our map-reduce jobs our MR code generates useful diagnostic data structures independently of the data being map-reduced. Is there an easy way to get these data out to the code that called mapReduce or to persist them in…
Sim
  • 13,147
  • 9
  • 66
  • 95
5
votes
5 answers

Advantages of server side javascript over java

I'm new to server side javascript programming, and I'm trying to understand the differences between this and the traditional server side java. What are the significant differences and why is SSJS becoming popular? How is SSJS better than Java? From…
Anand
  • 2,329
  • 4
  • 19
  • 25
4
votes
1 answer

Calling SSJS from Java?

I have created an xPages application which uses a lot of server side javascript code functions located in a server side javascript library. Now I have some java code located in the java design element which I would like to use to call the…
Thomas Adrian
  • 3,543
  • 6
  • 32
  • 62
4
votes
1 answer

How to convert a javascript animation to video on the server-side?

I am pretty sure this might not be an easy task, but here goes: My team is creating a website where the user is able to create animations. We are using js+html. The thing is that now the client wants us to be able to send the video to YouTube, thus…
Beto Frega
  • 956
  • 6
  • 21
4
votes
6 answers

What is server side java script? Can we use java script also at server side? Which type of java script is necessary to know for a front-end developer?

I just read that there is also a type of java script called server-side java script, before it i was thinking that java script is used only at client side....so my question is what is server-side java script ...and for a front-end develoer , is it…
Jamna
  • 2,561
  • 7
  • 28
  • 22
4
votes
2 answers

How to interact with Web server using JavaScript

I am trying to develop an Interactive chat application using AppWeb open source web Server. I need to have some machanism that will enable Web server to send updated messages to client, so that when remote usre sends messages that will get updated…
Puneet
  • 565
  • 4
  • 9
  • 21
4
votes
2 answers

How can I combine multiple loaders (CSS, LESS, ttf, etc) in NextJS config file?

I'm working on moving a React app to SSR using NextJS and per the docs, I'm using the CSS and LESS modules for Next. The problem is that it seems that only one works at a time. Some of the app still relies on Bootstrap for now, and I have not been…
Jay
  • 199
  • 2
  • 12
4
votes
1 answer

How to safely pass Redux store from the server to the client

I am working on a React app with server-side rendering. The app uses Redux for state management and Redux Saga for async actions. In pseudocode, what I am doing on the server side right now is: 1) initialize Redux store and run Redux saga on it 2)…
4
votes
2 answers

How To Send Streaming Video And Audio Data To The Server?

I am trying to build a video chat web api using html and javascript. So far I found this code that accesses the microphones and webcam on the client's device and displays the video and audio on that client's screen. Here is that code:…
4
votes
0 answers

Are there any downsides of isomorphic javascript?

As Javascript keeps expanding and covering most of the layers in web development, Isomorphic JS (writing software that could run either in client or server side) is growing as a new paradigm for web apps. The benefits are clear but server side…