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
29
votes
4 answers

a server side mustache.js example using node.js

I'm looking for an example using Mustachejs with Nodejs here is my example but it is not working. Mustache is undefined. I'm using Mustachejs from the master branch. var sys = require('sys'); var m = require("./mustache"); var view = { title:…
onecoder4u
  • 391
  • 1
  • 3
  • 6
25
votes
4 answers

How would MVC-like code work in Node.js?

I'm starting to get my head around node.js, and I'm trying to figure out how I would do normal MVC stuff. For example, here's a Django view that pulls two sets of records from the database, and sends them to be rendered in a template. def…
24
votes
8 answers

Are there any static Call-Graph and/or Control-Flow-Graph API for JavaScript?

Are there any Call-Graph and/or Control-Flow-Graph generators for JavaScript? Call Graph - http://en.wikipedia.org/wiki/Call_graph Control Flow Graph - http://en.wikipedia.org/wiki/Control_flow_graph EDIT: I am looking specifically for a static tool…
DuduAlul
  • 6,313
  • 7
  • 39
  • 63
23
votes
4 answers

How to sync a javascript countdown with server time

I am building a site which has times and prices which tick down. The thing I am most concerned with is syncing time so that it is as accurate as possible across all clients. Currently, I am sending the client the number of milliseconds left which is…
smdrager
  • 7,327
  • 6
  • 39
  • 49
23
votes
5 answers

Is it possible to develop a Google App Engine web app using Node.js or some other server side JavaScript approach?

I've been following the latest developments with server-side JavaScript - especially Node.js - and wondering if there is any possibility of using such an approach to develop a Google App Engine web application - either separately from or in…
20
votes
3 answers

Best server-side javascript servers

I've been wondering to try out server-side javascript for a while. And I'm finding a good amount of servers, like: Node.js Rhino SpiderMonkey among others. Could anyone with experience on server-side javascript, tell me which are the best engines?…
fmsf
  • 36,317
  • 49
  • 147
  • 195
17
votes
6 answers

What are some architectural reasons to use node.js aside from scalability?

The most common theme I read about why to use node.js is for high scalability due to it's evented, non-blocking I/O model. I'm trying to understand other non-scalability uses cases (and aside from being used as a general server-side javascript…
Howiecamp
  • 2,981
  • 6
  • 38
  • 59
17
votes
5 answers

What is "server" in server-side javascript like NodeJS?

Is it not a Javascript engine hosted by the browser on the client machine itself?
Divs
  • 1,578
  • 2
  • 24
  • 51
16
votes
1 answer

What is the correct way to chain async calls in javascript?

I'm trying to find the best way to create async calls when each call depends on the prior call to have completed. At the moment I'm chaining the methods by recursively calling a defined process function as illustrated below. This is what I'm…
Brett Ryan
  • 26,937
  • 30
  • 128
  • 163
16
votes
7 answers

Does it make sense to build pure JavaScript based web applications (both client and server side)?

I've always considered JavaScript as a great addition (or rather, for the last couple of years, as a must have) to the client side of any web application. Even when I started to use Mootools, which takes a big step away from DOM manipulation, and…
16
votes
4 answers

Is it possible to execute server-side javascript from a *Python* Google App Engine instance?

A lot of questions have been asked and answered about running server-side javascript on Google App Engine, but all of the answers deal with Java instances in order to make use of Java-based JS interpreters like Rhino, Rhino for Webapps, etc. Is…
16
votes
1 answer

how to detect that user's connection is lost or he closed the browser window in Nodejs socket.io

I have a chat application on Node.js and Socket.io, user can connect and disconnect with a button... I am having a list of online users which is perfectly managed with the help of my defined events that user trigger. But the problem is I am unable…
TaLha Khan
  • 2,413
  • 2
  • 25
  • 39
16
votes
3 answers

pros and cons of serverside javascript implementation?

I just started experimenting with Aptana Jaxer server side javascript engine for my next project. And i have few quesions about that By using server side JS, can we implement the whole web application without using any server side languages (like…
RameshVel
  • 64,778
  • 30
  • 169
  • 213
15
votes
1 answer

Node.js Parsing A Number Inside a String

Given a string like: Recipient: test@test.com Action: failed Status: 5.0.0 (permanent failure) Diagnostic: No How do I get the "5.0.0" and "permanent failure" only if it's always after Status: ? ? Thanks
donald
  • 23,587
  • 42
  • 142
  • 223
15
votes
3 answers

Interpreting JavaScript in PHP

I'd like to be able to run JavaScript and get the results with PHP and is wondering if there is a library for PHP that allows me to parse it out. My first thought was to use node.js, but since node.js has access to sockets, files and things I think…
Kit Sunde
  • 35,972
  • 25
  • 125
  • 179
1
2
3
27 28