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 8th in Discussion by . 4 comments .

Some Good News and What’s Upcoming…

For those who haven’t heard: I’ve changed jobs. And it was a truly fast transitional week, leaving LiveGO and joining the grou.ps family. My work hours at grou.ps are a little “shifted” to compansate the 10-hour lag between the grou.ps HQ at Palo Alto, and the Istanbul Development Office. This …

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
May 1st in Discussion by . 4 comments .

How to Document a JavaScript Framework

Before we start, here’s a link to what we’ll get in the end: http://o2js.com/documentation/logical/o2.html Do I Need to Document my Code? Short answer is: Yes, you do. Here’s a longer answer…

Continue Reading
April 30th in Discussion by . 4 comments .

That’s Why I’m Loving JSLint!

While code-reviewing o2.js modules, I realized that I had done a serious mistake. … well, actually my “serious” mistake, turned out to be a “not that serious” caveat

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 29th in Basics, Tutorial by . no comment .

undefined is null or not an object ;)

We’ve seen before that everything in JavaScript is an object. With a special exception. JavaScript‘s concept of “nothing”ness is a little confusing; since it defines two variables for non-existence: null, and undefined. And these two objects deserve a deeper look. null vs undefined undefined Any property that has not been …

Continue Reading
April 29th in Discussion by . no comment .

A Library Maker’s Guide to JavaScript

Each language has a way of doing the right things and doing things right; and JavaScript is no exception The main trick with JavaScript is to avoid taking the easy path. JavaScript is a versatile “language” and as the environment it is executed in is very forgiving, it is easy …

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
 Page 5 of 7  « First  ... « 3  4  5  6  7 »
o2.js _
Fork Ribbon