serverside-javascript

getting all filenames in a directory with node.js

I can't find where in the documentation I can get all filenames in a directory Thanks for any help! ...

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) from server-side code. Having said that, take a look at below ASP.net code for example:...

Server side javascript on Google app engine

Is there any way to run a Javascript engine, like Spidermonkey, on Google App Engine? Spidermonkey is a C module, so obviously that wont work (GAE doesn't allow those types of modules)... is there something else available? ...

Where Can One Find Examples of ECMAScript.NET's Use?

ECMAScript.NET is an open-source implementation of ECMAScript based on Rhino (JavaScript for Java) written entirely in C#. It's used in Pure.Krome's YUICompressor.NET Port. ...

Server-side JavaScript --> Simple Dynamic Site

Note: This is not about the merits/demerits of SSJS I am only asking if you think it is possible to create a simple dynamic site strictly using some form of SSJS. I am in no position to do any arguing (0 programming experience) -- I can only give you the benefit of some of the most interesting tutorials and information I ran across yest...

Node.js and CPU intensive requests

I've started tinkering with Node.js HTTP server and really like to write server side Javascript but something is keeping me from starting to use Node.js for my web application. I understand the whole async I/O concept but I'm somewhat concerned about the edge cases where procedural code is very CPU intensive such as image manipulation o...

user authentication libraries for node.js?

Are there any existing user authentication libraries for node.js? In particular I'm looking for something that can do password authentication for a user (using a custom backend auth DB), and associate that user with a session. Before I wrote an auth library, I figured I would see if folks knew of existing libraries. Couldn't find anythi...

Preventing XSS in Node.js / server side javascript

Hi all, Any idea how one would go about preventing XSS attacks on a node.js app? Any libs out there that handle removing javascript in hrefs, onclick attributes,etc. from POSTed data? I don't want to have to write a regex for all that :) Any suggestions? ...

Html 2 png using FF engine

I would find some example uses of FireFox engine to generate graphic file (it can be png) on server site with using browser engine. I would like achive the same image as if i open this html file in browser and use prinscr. ...

ringojs fileupload example

Does anyone have an example of uploading a file to the server using ringojs? ...

Finding out if a URL param exists in JS-ASP

I am editing other people's code, written in server-side JS for ASP, and have run into a problem that probably has a very simple solution. I'm outputting some code from a URL param like this: <%=Request.QueryString("param")%> The problem is that if the param doesn't exist, I need to do something else. So I tried: <% var param = R...

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 combination with Python or Java? ...

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 = "{ \"propName\" : '" + (" *** \\\"Hello World!\\\" ***") + "' }"; would turn into string res...

What are some recommended server-side javascript implementations?

Background: We've written some client-side javascript that we now have to move to a server for performance reasons. What we'd like to do is move the current javascript right over to a server rather than re-writing in a different language. It will need to access an Oracle database to get data. Question: So, what are some recommended i...

RingoJS, Threading, Blocking, Load

What are the best practices regarding hosting a web application on RingoJS/Rhino? Seeing as it's single threaded, blocking calls such as long-running queries/file-uploads/web-services will mean that every other request will hang. As far as I can tell, I could A.) Open a separate Ringo instance for processes I expect to block for a l...

Calling an ASP.Net function from javascript

Is it possible to call a C# function in my codebehind from javascript? ...

Multiprocessor with v8 and node.js

I was reading that V8 isn't multithreaded, and can't be by design. Is this true? Is it really the case that I can have a script optimized to run concurrently (on node.js) but that concurrency can't extend to multiple processors? I kinda thought that was a major reason for a concurrent design. ...

Libraries to write xml with JavaScript

I am doing some server side coding with JavaScript (node.js) and I would like to write valid xml. I found two libs, but I am sure there are more/better!? http://goessner.net/download/prj/jsonxml/ (LGPL) not yet released: https://sourceforge.net/projects/jsonix (LGPL) Requirements: open source (for commercial usage) Would be cool if...