Index | Archives | Atom Feed

Using Browserify without a node_modules directory

NPM and Bower are pretty awesome; they provides both NodeJS and web developers a way to share CommonJS modules (aka packages) amongst code-bases without relying on copy/pasting concatenated .js files. Browserify fills in the missing link for deploying an application to the web; it gathers up disparate CommonJS modules ...


Making XHR Request to HTTPS domains with WinJS

I recently came across an interesting caveat when working with WinJS (the JavaScript layer for creating Windows 8 Store applications). If you attempt to make an HTTP POST request to a server over the HTTPS protocol you may run into the following error:

XMLHttpRequest: Network Error 0x2ef3, Could not complete ...

Modular Javascript Unit Testing with QUnit and RequireJS

Modular application development is essential when working on a large project with more than a handful of developers. Breaking your code into separate modules improves code legibility and organization making it easier to locate logic and help create ‘seams’ in your code so you can do your best to adhere ...


Listening for jQuery Mobile Slider Events

jQuery Mobile provides a neat little slider control; however, the version 1.1 release doesn’t behave very well and fails to dispatch the expected start and stop events triggered by jQuery UI’s slider control. This issue (#1589) has been raised on jQuery Mobile’s GitHub Issue Tracker but ...


Streaming Video from Azure Blob Storage

By default Azure Blob Storage and Video do not mix well; the first hurdle that developers must get over is that the Content Type for the video must be set correctly (for .mp4 videos that’s usually video/mp4).

The next problem that you’ll face is that the video ...


Stubbing JavaScript Promises with SinonJS

Asynchronous code lies at the heart of front end development; in order to make your application feel responsive you can’t afford to block execution until some external data has been read. Promises are a well understood design pattern to help encapsulate the state of an asynchronous action. A Promise ...


jQuery - A single click handler for multiple buttons

Event bubbling is a wonderful thing; in ActionScript mouse events would readily bubble up through the DisplayList all the way up to the Stage allowing you to add a single event Handler to a parent DisplayObject and then inspecting the event.target property to determine which child button the user ...


Using External Templates with Mustache.js and jQuery

Mustache is a language independent, logicless templating engine which, in the context of a JavaScript / HTML5 style web application, means you can use it to separate your logic (javascript code) from your view (HTML Markup). Mustache comes in a variety of flavours; this article will be focusing on the JavaScript ...


Getting Started with AS3 Vanilla

A lot of people are excited about the news that Native JSON support is coming with Flash Player 11; however, I’ve also seen a lot of people get a bit confused by what this actually means – if you were hoping that Flash would be able to magically convert your ...


Maven and ANT – Managing Your Flash Project’s Build Dependencies

Project build dependency management and resolution is one of the more difficult problems you’ll face as your project grows in size; however even the smallest of projects (and teams) can benefit greatly from getting automatic dependency resolution in place.

What Are My Project’s Build Dependencies?

Most of us ...

© Jonny Reeves. Built using Pelican. Theme by Giulio Fidente on github. .