serverside-javascript

Referencing Google's V8 engine from a .NET app

I'm building a .NET 3.5 application and have the need to evaluate JS code on the server - basically a user provided rule set that can work within a browser or on the server. Managed JS is not an option, because the JS code would be provided at runtime. Aptana's Jaxer is also not an option. So I was looking into using a build of the V8 en...

pros and cons of serverside javascript implementation??

Hi, 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 C#,java etc). Or server side JS sits in between the web server and other langauge sta...

How is server-side javascript used/implemented?

I'm aware of server-side javascript for a long time now, but I don't have a clue about how it works. Could someone point me in the right direction? I'm interested in how to use server-side javascript + Java Servlet technology EDIT Great! I have seen those technologies before, but for some reason I didn't associate them with "server-...

how to render javascript in server side

Hi, i m getting a web page content in a string by using java.net.URL and Input Streams. the problem i m having that my javascript is not rendering and i m getting the as it is response. <html> <head></head> <body> <script> document.write("<h1>hello world!</h1>"); </script> </body> </html> suppose this is the code written i...

Write binary data using javascript on the server.

I'm trying to output a PDF using server side javascript (ASP). The current method I'm using is: xfile=Server.MapPath(lib.fso.GetTempName()) xf=lib.fopen(xfile,"wb"); lib.fwrite(xf,this.buffer); lib.fclose(xf); outB = Server.CreateObject("ADODB.Stream") outB.Type = 1 outB.Open() outB.LoadFromFile (xfile) Response.BinaryWrite(outB.Read()...

writing out a null in javascript

This question is in follow up to this one: write binary data using JavaScript on the server. The problem there with just using Response.Write to write the string is that the string contains a null character which JavaScript recognizes as the end of the string. The string I'm trying to write starts with the following (written here in...

Server side Javascript best practices?

We have a CMS built on Java and it has Mozilla Rhino for the server side JS. At the moment the JS code base is small but growing. Before it is too late and code has become a horrible mess I want to introduce some best practices and coding style. Obviously the name space control is pretty important. But how about other best practices - e...

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. ...

Best server-side javascript servers.

Hey, 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? and why? I like the Node.js because it's based on Google's V8 engine. And seems ea...

Best tool for DOM manipulation ?

I'm working on a web scraper which will aggregate data from various websites. I've started using PHP's built in DOM functions but after running into a couple of issues (especially regarding malformed markup and character encoding), I've chosen to ditch PHP. I was thinking of server side Javascript but am open to other suggestions. If I g...

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 view(request): things1 = ThingsOne.objects.all() things2 = ThingsTwo.objects.all() ren...

rhino serverside js licensing

any future plan for rhino to change licensing to lgpl? currently it is gpl, also mean if we use it we required to open source our application right? ...

How do you use Java to call the Rhino Javascript interpreter?

is there any example on using java method to call rhino-javascript function and return it back to java? The only example i found for rhino is only typing command on the rhino shell. ...

jQuery server side DOM manipulation.

Does anyone know if it is possible to leverage the power of JQuery on the .Net serverside? For example I have some HTML as a String in some code behind. Is there a way to execute JQuery on it? I'm currently doing this... Assume this is the String... <input id='AddressSettings_txtFirstName' name='txtFirstName' value='#firstNameValue#...

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", "MyVar2"); $js_func = array("MyFunc"); ...

Why does the JavaScript need to start with ";" ?

I have recently noticed that a lot of JavaScript files on the web starts with ; immediately following the comment section. For example, this jQuery plugin's code starts with /** * jQuery.ScrollTo * Copyright (c) 2007-2008 Ariel Flesler - aflesler(at)gmail(dot)com | http://flesler.blogspot.com * Dual licensed under MIT and GPL. * Da...

a server side mustache.js example using node.js

I'm looking for an example using mustache.js with node.js here is my example but it is not working. Mustache is undefined. I'm using Mustache.js from the master branch. var sys = require('sys'); var m = require("./mustache"); var view = { title: "Joe", calc: function() { return 2 + 4; } }; var template = "{{title}} spends ...

Pintura OR Perserve 2.0 - Production Ready?

I'm very interested in this framework, coupled with a NoSQL backend like MongoDB. Basically, my blue-sky vision is this: ExtJS/Pintura/MongoDB. I would probably plug in Rhino as the js engine. Is there anybody here using Pintura in a production environment? What are the pitfalls? What is your general experience? Thanks. ...

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 boards, full web-sites and things like this, as PHP does. ...

How is a functional programming-based javascript app laid out?

I've been working with node.js for awhile on a chat app (I know, very original, but I figured it'd be a good learning project). Underscore.js provides a lot of functional programming concepts which look interesting, so I'd like to understand how a functional program in javascript would be setup. From my understanding of functional pro...