Humax iconHumax 0.2.1

Humax project is a framework for developing RIA Web 2.0 applications.
Humax project is a framework for developing RIA Web 2.0 applications.

It provides a rich set of object-oriented client-side libraries which works seamlessly regardless of the server side technology used.

The web applications are today developed with rich interactive and quick responsible way. This was achieved by the usage of AJAX. Though, XmlHttpRequest is the only thing makes a web application as AJAX enabled, but there are numerous patterns used along with it.

In a straight forward manner, nothing but the usage of JavaScript. Previously, web applications used JavaScript only for client side validation and interactivity. In the AJAX world, JavaScript replaces high level languages in UI and UI Processing layers. Lot of frameworks available for providing interoperability between server side and client side in object oriented manner.

However, still the client side development more object orientation than what we currently use. This is not only the matter of object thinking. The client side development requires the features and facilities available in server side technology.

In addition to these, we require more for developing applications for Web 2.0 paradigm. Humax is one of the initiatives for providing the above specified requirements. Simply said, the scope for Humax framework is:
Complete object orientation and Interoperable Web 2.0 framework.

Framework with features as like in server side technology.

How To Use:

Step 1: Add Humax into your web project

Humax library is defined on "humax0.1.js" file. You can add this into your html page's header section by
< script type="text/javascript" src="humax.js" / >

Step 2: Define and Use Classes

You can either define the client side logic on separate JavaScript file or within the page itself. Humax recommend to use separate file. Some of the modern HTML/JavaScript editors supports code assistance which will improve your development productivity

Unofficially, Humax recommends to use Aptana IDE. It is a pure open source IDE for developing HTML/JavaScript. But the Code Assist Profiles one of the unique feature.

The following is a sample code declared on separate file

var HumaxSpace = {}
HumaxSpace.Point = function(x, y)
{
if(arguments.length == 0)
{
this._x = 0;
this._y = 0;
}else
{
this._x = x;
this._y = y;
}
}
HumaxSpace.Point.prototype =
{
_x : 0,
_y : 0,

getX : function(){return this._x;},
getY : function(){return this._y;},
setX : function(x) {this._x = x;},
setY : function(y){this._y = y;}
}

HumaxSpace.Point.equals = function(a, b)
{
if(a instanceof HumaxSpace.Point && b instanceof HumaxSpace.Point)
{
if(a.getX() == b.getX() &&
a.getY() == b.getY())
return true;
else
return false;
}
}

Humax.declareClass("HumaxSpace.Point", HumaxSpace.Point);

Step 3: Use the classes

You can use these classes to create instances on another JavaScript file or the html page as like

< script type="text/javascript" >
var point1 = new HumaxSpace.Point();
point1.setX(4);
point1.setY(3);

var point2 = new HumaxSpace.Point(6, 3);

if(HumaxSpace.Point.equals(point1, point2))
alert("Points are same");
< script >

What's New in This Release:

This release introduces asynchronous method invocation, JavaScript packaging, a timer class, and AppConfig.

last updated on:
March 23rd, 2008, 22:53 GMT
price:
FREE!
developed by:
M Sheik Uduman Ali
license type:
LGPL (GNU Lesser General Public License) 
category:
ROOT \ Internet \ HTTP (WWW)

FREE!

In a hurry? Add it to your Download Basket!

user rating 18

UNRATED
3.2/5
 

0/5

Add your review!

SUBMIT