Category Archives: JavaScript

Book Review: Creating Mobile Apps with jQuery Mobile

Today I’ll be reviewing the eBook version of Creating Mobile Apps with jQuery Mobile authored by Shane Gliser and published by Packtpub. You can check out Shane’s blog here.

Posted in Android, HTML5, iPhone, JavaScript, Mobile, Open Source, Reviews | Leave a comment

Book Review: CoffeeScript Programming with jQuery, Rails, and Node.js

Today I’m going to review the ebook version of CoffeeScript Programming with jQuery, Rails, and Node.js authored by Michael Erasmus and published my Packtpub.

Posted in CoffeeScript, JavaScript, Node.js, Open Source, Rails, Reviews | Leave a comment

Using Python to build a web project using jQuery (AJAX) and Flask

I’m working on a new project where I need to have a dashboard fetch updates on a regular basis from it’s host server. I decided to use Flask which is a microframework for Python based on Werkzeug and Jinja 2 … Continue reading

Posted in JavaScript, Open Source, Python | Leave a comment

Tutorial: Embedded JavaScript templates (EJS) and Node.js

There are several ways to create web applications with Node.js. One popular way is to use Jade. Today, I’ll show you how to use EJS (Embedded JavaScript templates) with Node.js to create a simple web application. If you’ve used PHP … Continue reading

Posted in JavaScript, Node.js, Open Source | 2 Comments

An easy tutorial on using callbacks in Node.js

In a previous post I showed you how to use the EventEmitter to give a notification when a webpage had been downloaded (or ran into an error). Today I’ll show you the same project but using a callback instead.

Posted in JavaScript, Node.js, Open Source | Leave a comment

A quick guide to JavaScript classes and inheritance

Today I’m going to go over how to create classes in JavaScript and how to work with inheritance. The first thing to confess is that JavaScript doesn’t actually have classes (please keep this in mind as I mention class in … Continue reading

Posted in JavaScript, Node.js | Leave a comment

Working with Events in Node.js using EventEmitter

The EventEmitter class in Node.js is pretty easy to work with when it comes to triggering custom events in your projects. Today I’m going to show you a simple demo project to fetch the contents of a website and then … Continue reading

Posted in JavaScript, Node.js, Open Source | 1 Comment

Performing content-negotiation with Express 3 and Node.js (examples in CoffeeScript and JavaScript)

Express version 3 introduces a nice feature that performs content-negotiation on the request accept header field when present. This makes it easy to respond to a client request with the requested format. In this article I’ll show you how to … Continue reading

Posted in JavaScript, Node.js | 1 Comment

The 2 minute guide to creating a new module in CoffeeScript for Node.js

Using modules in Node.js is an everyday task for most Node programmers. Today I’ll show you how to quickly create a class using CoffeeScript and to make it exportable into a Node.js project.

Posted in CoffeeScript, JavaScript, Node.js, Open Source | Leave a comment

Working with JQuery, AJAX, CoffeeScript and Node.js

I often get asked how to get Node.js working with JQuery and AJAX. Of course you can always use something like Socket.IO for realtime, but sometimes you might be dealing with older browsers that don’t support WebSockets and AJAX might … Continue reading

Posted in AJAX, CoffeeScript, JavaScript, Node.js, Open Source | Leave a comment