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 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
o2.js _
Fork Ribbon