-1
votes
1answer
22 views

Setting DOCTYPE With Server-Side Javascript

I have a real quick question. I want to set the DOCTYPE for an HTML Page but I need to do it using Server Side Javascript. Every answer I see on this site says "I don't see why you want to do it" but ...
0
votes
1answer
70 views

How to secure socket.io from code injection?

So i'm developing a socket.io real-time web-app. The first concern of mine was "What if some evil-minded user tries to inject some code via Dev Tools or Firebug?" and i've got my answer here on SO. My ...
0
votes
1answer
122 views

How to write test driven programming in node.js?

Recently I got introduced to node.js and packages like express, mongodb and ejs. I have few questions : As a learning purpose, I have created a github repo of user management which uses express, ...
0
votes
2answers
2k views

How to trigger server side button's click event after javascript confirm dialog returns true

I have an input as count named in a repeater with hdncount hidden input. And I have a server side button out of repeater. This script runs onblur event of count. I want to trigger server side button's ...
0
votes
1answer
211 views

Modifying response using server side scripts on Azure Mobile Services

I have a mobile app for which I am using Azure Mobile Services as a backend. I have a scenario in which I need to modify the elements that the client is requesting from the database. I need to ...
4
votes
3answers
388 views

Are there any ports or alternative implementations of the node.js platform with JavaScript engines other than V8?

node.js is an open source server-side JavaScript platform based on Google's V8 JavaScript engine. It has been rapidly gaining popularity and importance for couple of years now. Now node.js is just a ...
0
votes
4answers
117 views

How to fetch a site name from URL in Javascript?

Is there an easy way to fetch a site name from a URL string? Example: http://www.mysite.com/mypath/mypage -> www.mysite.com http://mysite.com/mypath/mypage -> mysite.com The JS code is ...
0
votes
0answers
99 views

Java EE Web App that uses server side jQuery?

I have a Java EE web application and I want to use server side jQuery to process some HTML. Here's the process - User installs a chrome extension that I wrote User visits a web page on their browser ...
1
vote
1answer
164 views

node.js: Accessing local variables from another module

My Problem I'm writing a node module called a, which require()s a module b (written by a stranger). Unfortunately, a doesn't only need to access the public members - it also needs to access local ...
0
votes
1answer
94 views

JavaScript: document.write() not working in Mac Terminal

I'm trying to include some libraries in from some server scripts that I'm running from the Mac Terminal (command line). This will not be run in a browser - I'm using Parse Cloud Code for my iOS app's ...
0
votes
1answer
100 views

JavaScript as a server-side language [closed]

i have been trying to understand how JavaScript can function as server-side language as i am used to JavaScript for client-side work such as AJAX. can someone explain to me succinctly, i have Java ...
2
votes
1answer
530 views

NodeJS 'assert' test fails for json object returned through the express http response

Having recently developed an interest in NodeJS, I finally managed to get my hands on a NodeJS book. A simple example on the book was to create an express server and write a test to verify a simple ...
0
votes
1answer
180 views

python equivalents to Meteorserver or Derbyjs or Angularjs?

are there any python frameworks that is akin to meteorserver, derbyjs, angularjs? basically something like pyjs but with support for UI data binding witnessed in knockoutjs, and angularjs with a ...
3
votes
5answers
2k views

Server-Side javascript framework

I'm looking to replace PHP with something better (everybody seems to say that PHP is evil, right ?), and considering server-side JavaScript. node.js seems very popular, but I'm afraid I'll go crazy ...
1
vote
2answers
365 views

How can I add custom HTML attributes to an ASP.NET label without code-behind access?

I am making some modifications to a website, but it is hosted by a third party so I don't have code-behind access, how can I add custom HTML attributes (Rich Snippets) to an ASP label or other ...

1 2 3 4 5 8
15 30 50 per page