July 5th in Widget by . no comment .

JavaScript Widget Development Best Practices (Part 1: Overview)

This is the beginning of a new article series where we will see best practices, common pitfalls, and “how to”s on creating JavaScript Widgets for external sites. Throughout the examples we will be using: node.js for the server; On top of node, expres.js framework as a higher-level abstraction; mongodb for …

Continue Reading
October 4th in Code Organization Guidelines by . no comment .

Now You Can Organize Your JavaScript Code, and Collaborate Without Hassle

The most up-to-date, and arguably more “readable” version of this document, may be found at the o2.js github repository. 1. INTRODUCTION This document includes JavaScript naming conventions, best practices and recommendations to be used within o2.js source code, and examples. If there’s a particular JavaScript usage that’s not mentioned in …

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
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 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
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 23rd in Discussion by . 10 comments .

Think You Know JavaScript? … You Don’t.

JavaScript is my passion, and I want to be encouraging (rather than discouraging), and want to make everyone realize that JavaScript is not a “kid language“. This article is not meant to be condescending. And I, by no means, claim that I fully know JavaScript. I just wanted to point …

Continue Reading
o2.js _
Fork Ribbon