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

Why is setTimeout firing earlier than it should?

I have a bit of node.js code as such: var start = Date.now(); setTimeout(function() { console.log(Date.now() - start); for (var i = 0; i < 100000; i++) { } }, 1000); setTimeout(function() { console.log(Date.now() - start); },…
swarajd
  • 977
  • 1
  • 10
  • 18
0
votes
2 answers

Keeping a script running server side at all times

I have created a website: http://instapromobiz.com that automates Instagram likes/follows/unfollows via Instagrams api mainly using javascript and a little php. My issue is that clearly it only runs while the user has the page open. This may be a…
0
votes
1 answer

Could you recommend me a server-side javascript parser?

I have to extract defined variable and function names from a js code passed as a text. Example: $js_code = " var MyVar1 = 'val1'; \n var MyVar2 = 'val2' ; \n function MyFunc() { some code }"; Extracted: $js_vars = array("MyVar1",…
Stefan K
  • 47
  • 5
0
votes
1 answer

Nodejs "net" - How to send messages from server in Unicode instead of ASCII?

I am making a chat application and I can manage to send messages in Unicode from the clients, but if I write an instruction in the server code (nodejs script with net framework), for example attaching the nick of the sender to the message, it makes…
0
votes
1 answer

NodeJS as javascript server pages

What setup should i use to have a bunch of HTML (*.html) files - some of them having server side code () - acting as javascript server pages on a node.js server?
0
votes
2 answers

editing(automate change) of a js file on server

I was wondering if it is possible to use a server-side scripting language, php preferable, to automate the change of a value, in this case a number. JS FILE (sample): var whatIsShowingNow = 2; function showChange(integral) { //code is…
user1648449
  • 97
  • 2
  • 10
0
votes
1 answer

Save a value in Collections and find it with Meteor

Values = new Meteor.Collection("values"); if (Meteor.isServer) { Meteor.startup(function () { Meteor.setInterval(function() { Values.insert({id: Math.random(), name: "value"}); console.log(Values.find({name: "value"}).id); },…
David Gomes
  • 5,644
  • 16
  • 60
  • 103
0
votes
2 answers

Is there a Server Side Javascript engine for IIS?

I am looking for a solution similar to Aptana's Jaxer where I can execute javascript server side.
David Robbins
  • 9,996
  • 7
  • 51
  • 82
0
votes
1 answer

onChange events not firing in an XPage repeat control

I have a large 'order form' XPage that displays 99 rows, with 3 text input boxes on each row. To capture changes, I have placed a call to a SSJS function in the 'onchange' event of each input box. The call simply sends the product ID, the type of…
Terry Boyd
  • 121
  • 7
0
votes
1 answer

which errors must be handled in nodejs?

Irrespective of any business logic, what errors must be handled in node server. ? What are potential errors/exceptions ? I have tried to take care of following things- uncaughtException socket error event EMFILE, open Also having only one logger…
Pranav
  • 2,054
  • 4
  • 27
  • 34
0
votes
1 answer

Client side Meteor on Server with reactive coffee

What's involved in running 'client' Meteorite packages on server? I'm interested in using reactive coffee for rendering a newsletter on the server. Can't find any references to this though it seemed an intuitive option. How's this (meteor…
0
votes
2 answers

Windows Azure mobile services, server side scripts: data

I have added some tables to my database in in windows azure via entity framework however I am not able to access these tables through the server side scripts (mobile services custom api)and they do not appear through the "MOBILE SERVICES: DATA"…
user1619480
  • 533
  • 8
  • 18
0
votes
1 answer

Can we access JavaScript object on Serverside C# asp.net

Here in my Asp.net web application I have to generat pdf, earlier I used to achive this task using itextsharp (server side / paid services) , now i found jspdf can be done on client side plus point it is open source. Heres sample code which…
Satinder singh
  • 10,100
  • 16
  • 60
  • 102
0
votes
1 answer

Nodejs mysql module not connecting to database

I'm trying to do a simple test query to get the node mysql module working but it's not connecting to the database. Here's my code in app.js: var http = require('http'), io = require('socket.io'), sys = require('sys'), express =…
0
votes
1 answer

ASP.NET: Show jQuery dialog after button click

On my ASP.NET page I have a button. After click on the server side should be generate a div which represent the content for a jQuery dialog and the related JavaScript block. But neither the div nor the JavaScript are contained on the page after the…