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

Call javaScript Function Server Side

I wrote this javascript Function : function ShowMsg(msg) { $.blockUI({ message: '

' + msg + '

', css: { border: 'none', …
Shahin
  • 12,543
  • 39
  • 127
  • 205
0
votes
3 answers

ServerSide JavaScript

I have a question about SSJS. With SSJS, is it possible to hide code from the user? Other ServerSide languages like PHP aren't viewable in the source because they are processed before the client side, the browser A little example of what I…
Chielus
  • 632
  • 8
  • 18
0
votes
3 answers

Jquery Message Box After Postback

i want to use this plugin in my asp.net application i want to show Alert or etc after postback. i wrote this code but it does not work. string a = null; a = "csscody.alert('<h1>Information Alert</h1><em>low …
Shahin
  • 12,543
  • 39
  • 127
  • 205
0
votes
0 answers

How to dispatch multiple redux store actions using ES6 Promise?

I am trying to dispatch multiple redux actions in a sequence (or at once, doesn't really matter) using Promise API and it is not working: Promise.all([ store.dispatch(action1()), store.dispatch(action2()), store.dispatch(action3()), …
Gasim
  • 7,615
  • 14
  • 64
  • 131
0
votes
1 answer

Run server-side code with google chart select

I have a google visualization table that I'm publishing in a web app. Background: I run a script that lists all the documents in a google folder in a spreadsheet. I then push that list into the google table I have published in the web app. The…
0
votes
1 answer

Vue server-side rendering: app not being rehydrated, no error thrown

I have a working Vue app in my dist directory: when served by a server, everything works fine. When I try to add server-side rendering using vue-server-renderer, it doesn't work. The page loads, but it isn't being rehydrated properly: most event…
callumacrae
  • 8,185
  • 8
  • 32
  • 49
0
votes
1 answer

Error on server rendering

I use React + Express + Webpack index.js require('babel-core/register'); global.__CLIENT__ = false; global.__SERVER__ = true; global.__DEV__ = process.env.NODE_ENV !== 'production'; require('./src/server/index'); server.js import React from…
Pavel Perevezencev
  • 2,596
  • 3
  • 28
  • 49
0
votes
1 answer

Upload react basic application to server

I am trying to upload the following to my personal server to see how it works: https://github.com/remarkablemark/universal-react-tutorial I have tried to change the port here: (server.js) require('babel-register')({ presets: ['react'] }); var…
Aessandro
  • 5,517
  • 21
  • 66
  • 139
0
votes
2 answers

yii2: js calulation in server side

This is a page for calculate the product order. My mentor told me that: "The code put the code calculation logic inside JavaScript which means, user can simply inject and modified the content and get discount to make it safe, may either do a…
Ying Rui Wong
  • 113
  • 3
  • 17
0
votes
0 answers

Best Practice for Making AJAX Call from Server and not Client

We are using a three tiered architecture for an application. We have a database on one end, a front end server running IIS on the other end, and in the middle a glassfish server for java servlets. So far we have been using javascript AJAX calls…
Marcel Marino
  • 962
  • 3
  • 17
  • 34
0
votes
0 answers

Serving HTML, JavaScript, CSS for an web application running on a Win CE device

I have a requirement at my work place that I have to write a web app using HTML and JS and run that app in a Win CE embedded device. Basically I have to write a server side application and host all the html pages and render it on the device as and…
0
votes
1 answer

Basic use of server side API and passing server side variable to client side

I've just started my IT degree and I'm a beginner to the use of APIs (and forums like this) so I am truly sorry if my question is to vaguely explained or if it is just plain stupid :), on top of that I'm not a native English speaker :P. Okay, so I'm…
0
votes
2 answers

escaping string for json result in asp.net server side operation

I have a server side operation manually generating some json response. Within the json is a property that contains a string value. What is the easiest way to escape the string value contained within this json result? So this string result = "{…
Jason Jarrett
  • 3,857
  • 1
  • 27
  • 28
0
votes
0 answers

VueJS v1 - Server Side Rendering

I would like to ask if VueJS version 1 has a server side rendering and that can be read by google crawler/bots for SEO purposes. I have read that server side rendering will be available in V2 but I would like to ask if there's a way in VueJS…
Sydney Loteria
  • 10,171
  • 19
  • 59
  • 73
0
votes
1 answer

How to make this client side code a server side code?

I have wrote a client side code in server side code like this: strHTMLGrid = strHTMLGrid + " \n"; This code looks like this in client side: