June 11th in Discussion by . 2 comments .

What’s New in the o2.js JavaScript Framework

By the time of this writing, o2.js is at version 0.16.201106101845. You can always get the most up-to-date version from the o2.js SVN Repository (user: o2js pass: o2js). Here’s what’s new in this version: o2.js Documentation Updates I’ve updated the documentation, going over each and every single file. In addition, …

Continue Reading
June 4th in PhoneGap by . 2 comments .

Creating A Mobile JavaScript Chat – Part 4: Cross-Domain Restrictions

In the former tutorial of this series, we created a sample mobile application that’ll run in an Android mobile device. All the HTML, CSS and JavaScript files, which the application was using, were stored in the /assets/www folder of our mobile project. You can click here, to get the source …

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 24th in PhoneGap, Tutorial by . 4 comments .

Creating A Mobile JavaScript Chat – Part 3: Going Mobile

Introducing PhoneGap In the former parts of the series, we’ve created a JavaScript chat server, and a JavaScript chat client. Now it’s time for converting our client into a native mobile application. To achieve this, we will be using PhoneGap as an intermediate layer between our HTML5 / JavaScript client …

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 18th in Comet, Tutorial by . 9 comments .

Creating A Mobile JavaScript Chat – Part 1: The Service

In this series, we will be creating a simple JavaScript mobile chat application. It can be both used from a desktop browser as a web page, and from a handheld device as an application. Keep in mind that this tutorial is just a demo, showing the bare bones of the …

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 9th in o2.js Modules by . 6 comments .

Cross-Browser Event Handling in JavaScript

In one of the former posts, I’ve mentioned that we were going to create a simple mobile chat application. In order to achive this, we need to add several modules to our o2.js framework, one of which is a cross-browser Event Handler. Creating a cross-browser Event Handler is pretty straightforward, …

Continue Reading
 Page 4 of 7  « First  ... « 2  3  4  5  6 » ...  Last » 
o2.js _
Fork Ribbon