Ajax Availability Calendar

The Ajax Availability Calendar is a php script designed to show availability of whatever you might need it for (eg. holiday cottage, hotel rooms etc.). Free to use on your website or application and is currently being used by hundreds, if not thousands, of websites around the world.

Ajax Calendar

Ajax Calendar


Open Source and FREE to use in your site or aplication
Unlimited Items (holiday homes, apartments etc.).
Unlimited Languages.
Unlimited Booking States (available, booked am, Special Offer etc.).
100% administrable ( see admin panel ).
Multiple administration users.
Styled with CSS – easy to adapt to any design.
Uses AJAX to change months viewed without reloading the page.
Simple integration with booking form.
Simple installation script to help with the calendar setup.
All javascript handled by the Mootools library.

More Details and Live Example: http://www.ajaxavailabilitycalendar.com/

Download Code Files


Add products to a shopping cart using AJAX

This class could be utilized to add items to a shopping truck without reloading the page.

It can recover a rundown of items from a Mysql database and produce HTML to show the items on a page with connections to add or evacuate them to a shopping cart.

The point when the client clicks on the item interfaces the browser sends an AJAX solicitation to the server to add or evacuate the items to the shopping cart.

Download files from here

Manipulate the item of a shopping cart using AJAX

This class might be utilized to control the things of a shopping truck utilizing AJAX to abstain from making the client leave the present page.

The class can create HTML and Javascript to show the agenda of things in the shopping cart.

The agenda has structure submit catches to trigger the execution of AJAX demands that can include or uproot things from the shopping cart.

The agenda of shopping cart things is saved in a session variable.

The activities of including and uprooting things are likewise followed by saving the activity items in a Mysql database table.

Download files here


Process browser events on the server using AJAX

RSPA stands for Really Simple PHP and AJAX. It is a framework with components for processing browser events on the server using AJAX to provide interaction between the browser and the server without page reloading.

It can be used for calling PHP class functions from the browser side. It provides means to manipulate JavaScript objects on the browser page.

It can be used to manipulate common HTML page elements. It also provides custom page elements such as labels and auto-complete inputs.

It now works with PHP 4 and PHP 5

Download files from here

Call PHP functions from Javascript using AJAX

This class might be utilized to call PHP capacities from Javascript utilizing AJAX to escape page reloading.

It can create Javascript code to make AJAX appeal utilizing the Jquery library to execute PHP works on the server side.

The class can enlist PHP callback work that will be called when the AJAX solicitations are sent.

Download From Here

Generate editable text box that is saved with AJAX

This class might be utilized to produce a content box that gets editable when the client twofold clicks on the content.

It shows the content to be altered inside a DIV tag that is displaced by a content info when the client twofold clicks on the DIV.

The point when the content data looses the center, the altered content is submitted to the server to be spared without reloading the page utilizing AJAX.

Download Files

AJAX in WordPress


AJAX = Asynchronous JavaScript and XML

AJAX is not a programming language, but a way to use existing standards, AJAX is the art of exchanging data with a web-server, and updating parts of a web page – without reloading the whole page.
Here is a basic example of how we use AJAX in WordPress.
It explains how to take a variables from JavaScript and pass it to a PHP function,  and then pass it back to the JavaScript.

For using this you must know how to enqueue JavaScript in WordPress.

//PS: you may need to add jQuery Library in your theme for using this in some cases, but in admin side, jQuery is already added.

jQuery(document).ready(function($) {

// here you can get any user input or can use variables that need to send to Ajax, I used a simple static variable, but you can use your own and can get them dynamically
var first_name= 'Vivacity';
var last_name= 'InfoTech';

// A simple ajax request "ajaxurl" in WordPressyou need not to worry about this, WordPress handles it automatically
url: ajaxurl,
data: {
'action':'your_function_name', //you can use anything you want
'firstname' : first_name,
'lastname' : last_name
}, success:function(data) { // This outputs the result of the ajax request being made console.log(data); }, error: function(errorThrown){ console.log(errorThrown);//loggin errors in browser console } }); });

PHP Code

function your_function_name() {

// The $_POST contains all the data sent via ajax ($_REQUEST can also be used)
if ( isset($_POST) ) {

$firstname = $_POST['firstname'];
$lastname = $_POST['lastname'];

// you can do any programming of variables here, like I did simple to concatinate two strings

$fullname= $firstname +  lastname

// Now you can return result back to the javascript function, that will be returned in the response
echo $fullname;


// Always use exit() in functions when you do ajax

add_action( 'wp_ajax_your_function_name', 'your_function_name' );
// Please use "wp_ajax_" here for Ajax based function hooks