VeryTinyAJAX2 lib

Don't know the best browser?
Try Mozilla Firefox! Its 100% free.

...

What is VeryTinyAJAX2?

VeryTinyAJAX2 is a OpenSource JavaScript small-size library that implements a cross browser layer with many simple functions to make AJAX applications clean, faster and better. It comes with a small PHP to automatize some works (change content-type, include the JavaScript lib, ...).

And... what is AJAX?

The definition on the Wikipedia for AJAX is a shorthand for Asynchronous JavaScript and XML, is a Web development technique for creating interactive web applications. The intent is to make web pages feel more responsive by exchanging small amounts of data with the server behind the scenes, so that the entire web page does not have to be reloaded each time the user makes a change. This is meant to increase the web page's interactivity, speed, and usability.

How it works?

Very simple interface to call:

Client call (JavaScript):
ajax('clock',{'extra':'data'},function(r){
	if (r.data.time) gid('clock').innerHTML=r.data.time;
});
Server call (PHP):
switch ($ajax) {
case 'clock':
	ajax(Array('time'=>date('H:i:s')));
}

This code is updating the clock in this page ;-)

There is a lot of more posibilities to call it, check the tests.