August 3rd in Widget by . no comment .

JavaScript Widget Development Best Practices (Part 6: Refactoring the Widget API)

In the former article of the series We rendered the user interface of our widget inside an anchor element in publisher’s website; We asynchronously loaded widget styles; We implemented a very naive authentication mechanism. We also defined a job queue _wdq (similar to google analytics’ _gaq) to be able to …

Continue Reading
July 30th in Discussion by . no comment .

JavaScript Widget Development Best Practices (Presentation)

After my conference on jstanbul 2012, I updated the presentation adding some bullet points for the questions and feedback from the community.     You can view and download the presentation from SlideShare. And I’ll continue this blog’s series on JavaScript Widget Development Best Practices from where I left. Until …

Continue Reading
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
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
November 5th in Functional Programming by . no comment .

Everything You Need To Know About JavaScript Functions (and more)

Functions are the building blocks of any JavaScript module. In this tutorial, we’ll have a glance on basic principles behind functional programming in JavaScript, along with some lesser known features of JavaScript functions. This is mainly a follow-up, and a more in-depth analysis, of a former JavaScript Function Kung-Fu post. …

Continue Reading
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
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
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
 Page 1 of 2  1  2 »
o2.js _
Fork Ribbon