Category Archives: javascript

JavaScript in the cloud

The idea of running JavaScript on the server has been around for a while now (think Jaxer back in 2008), but it recently got a big boost with the featuring of Node.js at JSConf in November 2009. Node.js found immediate fame by demonstrating blinding performance as a web server, and by building on the hotly hyped V8 JavaScript engine Google bundled [...]

Testing Adobe AIR applications with QUnit

I’d like to say I always write tests before I write any JavaScript code… Those times when I do write tests, I use the QUnit framework, which is used to test jQuery, so pretty well-tested itself. I’ve recently been putting together an Adobe AIR application using HTML, CSS and JavaScript (aka Web Standards), which is [...]

Online banking with JavaScript – first working thing

I recorded this at Islington Hackspace tonight, figured it would be cool to share visually rather than have a big blag-rant, (see my last post for one of those). It ought to be self-explanatory. I’m thinking about wrapping this up in an iPhone app so I can pay people for free. Rather than use PayPal [...]

Notes on migrating an application from AppJet to Smart Platform

I’ve been wingeing quite a lot recently about AppJet’s demise and the shoddy state of potential replacements, and got quite a nice response from Jim Pick at Joyent. I decided today to have a play with their new Smart Platform and had a go at porting one of my AppJet applications over to Smart. Here’s [...]

Adapting WireIt to work with independent data stores

I’ve been working during the last fortnight on the “Streams” project, which LShift, an IT consultancy in Shoreditch, are building in conjunction with the BBC. My part in this project has been to prototype the interface that a non-technical person would use to edit and create Streams, which are box-and-wire visual workflows similar to those [...]

console.log in Safari doesn’t “apply”. Bad Safari.

It’s not unusual to want to write a cross-browser logging function akin to Firebug’s console.log(). The approach that you would expect to work could quite plausibly be this: function log() { if(console) { console.log.apply(this,arguments); } } We invoke the function with apply here so that implementations that can take multiple arguments receive them. However, this [...]

SproutCore: smart clients, dumb servers

I heard about SproutCore recently, from an enthusiastic client-side web developer. I hadn’t heard about it, which is not entirely unsurprising as it turns out – SproutCore came out of hiding as something of a surprise at the recent Apple Worldwide Developers Conference, as the power behind the slick interfaces for Apple’s new suite of [...]

Using Script tags to do remote HTTP calls in Javascript

I’ve been racking my brains all afternoon trying to find a workable solution to the problem of not being able to make remote HTTP calls using javascript. This is an issue for me because so much of my work takes place inside a TiddlyWiki which, when viewed locally (from a file:// url) is a perfect [...]

Too many cooks spoil the DOM (getting content out of page elements)

I frequently find myself wanting to refer to the contents of an element on a web page, having got hold of that element in the DOM. However, I equally frequently forget how to access this content. The confusion arises because there are various ways to get hold of the content of an element: nodeValue, value, [...]

Editors, editors, everywhere and not a lot of links

Edit: I’ve updated the list of editors below after some good leads in the comments. So… I’ve been pottering around the web looking for a decent development environment to free me from the shackles of Notepad, which I’ve been using without fail since about 1999. Yes, it’s tragic. I was looking for a tool to [...]