Overview
Since no error correction is done for the bookings (i.e. it is possible to book resources that are not available at the requested date) all applications must check resource availability. This function passes a resource ID to the API which returns a set of available dates, and for each date the number of available positions and the cost for making a booking is returned.
ResultAvailability
booking/getavailability_XML.php shows the availability information for all available dates for the given resourceID.



Call Example:

$.ajax({
	type: 'POST',
	url: 'booking/getavailability_XML.php',
	data: {
	//	type: escape("Hotell_Demo"), // Optional: You can specify the application?
		resourceID: resource
	},
	success:  ResultAvailability
});								


Returned Data Example:

<avail>
<availability 
    resourceID='1008'
    name='The Laszlo Plaza'
    location='Athens'
    company='Laszlo Inc'
    size='96'
    cost='110'
    category='1'
    date='2001-01-01'
    bookingcount='0'
    bookingcost='28.99'
    bookingclass='1'
    remaining='96'
 />