June 28th in o2.js Modules by . no comment .

Now you can have o2.js as a node.js module and require it from npm too

Unless you have been living in a cave for the recent two years, you should known that node.js is a highly efficient platform built on Chrome’s JavaScript runtime for easily building fast, scalable network applications, by using an event-driven, non-blocking I/O model. node.js is lightweight and efficient; perfect for data-intensive …

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 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
May 8th in o2.js Modules by . no comment .

Listening to the DOM ready event

The benefits to having some JavaScript executed before the page has finished loading (before the onload event) is huge, and most of the JavaScript frameworks such as YUI, DoJo, prototype, MooTools, and jQuery have implementations to handle this case. In this tutorial, we will be creating a simple o2.ready module …

Continue Reading
May 3rd in o2.js Modules by . no comment .

JavaScript Method Kung-Fu

Functions are powerful construct in JavaScript. In this tutorial, we are going to do some advanced function manipulations with. Do you like Reflection? Then you’ll love this tutorial

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
April 30th in o2.js Modules by . 4 comments .

Designing a JavaScript String Helper

String is a data type that any developer spends most of time working with. We format, we replace, we sanitize, we prettify, we trim, we encode, we decode, we serialize… Strings tirelessly, over and over And it’s virtually impossible to think about a JavaScript framework without some kind of a …

Continue Reading
April 28th in o2.js Modules by . no comment .

A Simple JavaScript Validator

Reconsidering of the is function we created in our former eqality post, I realized that it’s a pretty reusable piece of code. Thus, I decided to create an o2.Validator module out of it.

Continue Reading
April 26th in o2.js Modules by . no comment .

o2.js: May The Source be With You

You can find the most up-to-date version of o2.js Core and the samples used in these tutorials at: https://source.o2js.com/svn/o2js.com/trunk/o2.js/ username: o2js password: o2js Just wanted to share, to those who want to follow the development process closer You can use any SVN client to connect to the repo. The username/password …

Continue Reading
 Page 1 of 2  1  2 »
o2.js _
Fork Ribbon