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

Using Express for routing React Server side

Is it okay for a site to use Express for handling the routing when using Server side rendered React templates rather than React Router? I am looking to use Fluxxor similar to this example for my components and stores/actions. Then I was planning to…
svnm
  • 22,878
  • 21
  • 90
  • 105
4
votes
5 answers

Rendering javascript at the server side level. A good or bad idea?

Now a community wiki! I want to make it clear first: This isn't a question in relation to server-side Javascript or running Javascript server side. This is a question regarding rendering of Javascript code (which will be executed on the client-side)…
4
votes
8 answers

JavaScript on the server-side like PHP

I'm now thinking to establish my server-side code in JavaScript, and begin to do all on it, but I want to know about its security and flexibility compared to PHP. I want to know too, if it can be successfully used to develop things like forum…
Nathan Campos
  • 28,769
  • 59
  • 194
  • 300
3
votes
1 answer

How to always return a java.util.Vector

If the value in my control only have one value the following code will return a String, if there are more than one value the code will return a java.util.Vector. getComponent("mycontrol").getValue(); I want this code to return a vector even if there…
Thomas Adrian
  • 3,543
  • 6
  • 32
  • 62
3
votes
1 answer

Serving static HTML from CouchDB

I've got a CouchDB server up and running serving basic API requests. Overall it works well because users can GET/POST/PUT etc. to the host 'api.example.com'. The only issue is that if a user does a GET request for '/', they get the…
Nate
  • 331
  • 3
  • 9
3
votes
1 answer

nodejs + jsdom, jQuery strange behavior

The code below is just a small snippet from my server.js file just to run the test provided by the jsdom documentation. var window = jsdom.jsdom().createWindow(); jsdom.jQueryify(window, './jq.min.js' , function() { console.log('inside'); …
jerluc
  • 4,186
  • 2
  • 25
  • 44
3
votes
2 answers

How to Configure Puppeteer to Properly Render External JS Pages? Works for Localhost URLs only

I am trying to configure server-side rendering for external Javascript Pages. I am using Puppeteer for this purpose and when I provide any external URL (not localhost pages), Puppeteer fetches only the source code of the URL (what you may see in…
3
votes
3 answers

Gatsby JSS "Flicker" on page load

There is a "flicker" of unstyled content on page load of my Gatbsy site. It's probably most helpful to look at the current deploy preview here https://happy-mahavira-5cd669.netlify.com/. My research up to this point has led me to the…
3
votes
2 answers

save incoming file from s3 w/nodejs & knox?

This is likely very basic because the docs leave it out... from knox docs: "Below is an example GET request on the file we just shoved at s3, and simply outputs the response status code, headers, and…
pickaxe
  • 113
  • 1
  • 6
3
votes
2 answers

Confirmation box from server side in asp.net

I want to show the confirmation box in asp.net from server side: I want to call it from server side because I have to take the customer message from server side. I am using the below code string str = "Are you sure, you want to Approve this…
Chris
  • 2,293
  • 11
  • 48
  • 86
3
votes
2 answers

Where does node.js sit in the client <--> web server flow?

With respect to how node.js fits in with clients and web servers, is my description below correct? (A) are clients (B) is node.js running on some web server (C) are "services" hosting business logic, database access routines, e.g. "GetCustomer()". …
3
votes
2 answers

jsdom not loading or not running external scripts in page

Cross-posted from https://github.com/tmpvar/jsdom/issues#issue/127 I will post a minimal test case in the next day or so - but I wanted to see if anyone else had the same problem - or if (more likely) if I am doing something stupid. I'm using NodeJS…
fadedbee
  • 42,671
  • 44
  • 178
  • 308
3
votes
4 answers

Can node.js be used as a framework for running arbitrary server-side Javascript in web applications?

Can node.js be used as a general framework for running server-side Javascript specifically for web applications, totally unrelated to it's non-blocking and asynchrouns I/O functionality? Specifically I want to know if I can run arbitrary Javascript…
Howiecamp
  • 2,981
  • 6
  • 38
  • 59
3
votes
3 answers

Scripting with Server-side Javascript

What is a good server-side javascript implementation for writing both one-off scripts to handle some task or writing automation scripts to be used over and over. I am intrigued by the ability for SSJS to scrape webpages with such ease and am…
Jade Somath
  • 173
  • 4
3
votes
3 answers

How can i pass values from querystring to javascript?

Now that i learned how to pass values to an SWF object via flashvars, could you please guide me how can i pass values from a querystring to javascript? What do i mean? In the following example i hard-code the xml file to load in the SWF…
OrElse
  • 9,709
  • 39
  • 140
  • 253