November 26th in Unit Testing by . no comment .

How Unit Testing Helped Me Slash a Nasty Bug

To make a library ready for production, you need to write unit tests that cover all the core functionalities of the library. Then you will need to establish a means to automatically run those unit tests in different target environments. Only when a library passes all unit tests in all …

Continue Reading
June 1st in JSONP by . no comment .

JSONP with Timeout Using o2.js — Quick Example

In the recent post, we’ve seen how to implement error handling with our JSONP requests, using o2.JsonpController, and o2.JsonpState objects. The article was a little lengthy, and I thought it’d be nice to summarize the usage with a quick code exampe:

Continue Reading
May 29th in o2.js Modules by . no comment .

Cross-Domain AJAX Requests With JavaScript

We will soon finalize our Mobile JavaScript Application and convert it to an Android-market-ready .apk file. But before that we’ll need some enhancements to our o2.Jsonp object. o2.Jsonp, which allows cross-domain communication using JSON with Padding, was first mentioned in this post. You can click here, to get the source …

Continue Reading
May 19th in Comet, Patterns and Practices, Tutorial by . 2 comments .

Creating A Mobile JavaScript Chat – Part 2: The Client

In the former posts we’ve created a simple AJAX Comet Chat Server, and an AJAX Timeout Controller which implements an Observer interface. In this part of the series, we’re going to create a JavaScript client that communicates with our Comet Server. The User Interface Let’s start with a simple UI: …

Continue Reading
May 19th in Observer, Patterns and Practices, Tutorial by . no comment .

Implementing a JavaScript AJAX Observer

The Problem While working on our JavaScript mobile chat application, we will be constantly listening to open Comet connections. It’s possible that, the server we are listening to may not respond in a timely manner, due to traffic overload or due to some external factor such as a slow network …

Continue Reading
May 16th in o2.js Modules by . no comment .

News and Upcoming

Today, it’s been my first week at grou.ps . Grou.ps was kind enough to let me use o2.js in production code. This helped me enhance and stabilize the framework furher. I’ll try to summarize what has changed in the following week in o2.js core briefly: MIT License From now on, …

Continue Reading
May 2nd in o2.js Modules by . 2 comments .

How to Build a Kick-Ass AJAX Object From Scratch

Creating an AJAX object is easier than you may think. We will explore it, step by step, in this tutorial. An typical AJAX interface should have the following properties, at the bare minimum: Ability to send HTTP GET requests Ability to send HTTP POST requests Ability to send SYNC AJAX …

Continue Reading
o2.js _
Fork Ribbon