Sample Client using jAC XML File

The samples on this page all represent code that would be run from YOUR WEBSITE (the CLIENT) and access remotely the jAC Database (the SERVER) or directly to the rentors.org or other calendar service. This CLIENT is intended to run from any server (even yours) and access the remote data on the Server.

Basically you download and install the jacapi on your server and it will then provide you access to an XML file of your calendar data in an easy to use array form. Then you can do anything you want with that data.

The data is CACHED on your local system. That means that when the data is read from the server it is then copied and stored onto your local machine. When the data is requested again, your page does not have to go to the server again, it simply uses the page it stored. You can control the time of the cache, from 1 minute to 30 days as the interval to use the local file before retrieving from the server again. This demo is using a cahce time of 5 minutes.

Return to jacWIKI

XML direct from Rentors.Org or other Source

You don't have to register your properties in jAC if all you need is an XML file of your rental data on rentors.org or another calendar.

This jAC client lib is installed at: http://www.jhinline.com/jacavail/jaclib/jacxml

The api includes the XML generator for many datasources. You can access them directly with no connection to the jAC site. Goes from the api on your server directly to the source (i.e. rentors.org). This is sample URL:

http://www.jhinline.com/jacavail/jaclib/jacxml/jacxml_showxml.php?source=ro&id=30307

Get the data: http://www.jhinline.com/jacavail/jaclib/basic/sample_getdata.php?source=ro&id=30307

Make a calendar: http://www.jhinline.com/jacavail/jaclib/basic/sample_getcalendar.php?source=ro&id=30307

Integrate to yahoo: ../yahoo/yahootest.php?source=ro&id=30307

Just change that URLs above to your actual source and actual id and you can retrieve the XML directly from the source into your script.

XML direct from jACTheRentalCalendar Source

This jAC client lib is installed at: http://www.jhinline.com/jacavail/jaclib/jacxml
Accessing jAC SERVER: http://www.therentalcalendar.com/jac
Property ID on Server you are accessing: demo100

The Florida Condo Rental in Disney

Using your data in your own web pages

SHOW The local Cached data

SHOW a Local HTML Page with BOOKING and Property Data

Build the calendar with local api functions.

SHOW information for ALL properties belonging to this OWNER

Using your data with Third Party Calendars

YAHOO! UI Calendar examples for this property

Link to Server Calendar and Data

SHOW CALENDAR ON SERVER

SHOW XML FILE ON SERVER

SHOW XML of ALL properties by this owner