One of the features I find it interesting in Google calendar is the possibility to create shared calendars, but also the availability of your calendar as XML or ICAL whatever it’s a private or public one. As soon as we have XML of our calendar available I was wondering why not integrating Google calendar directly in website. For example a community that use the service to manage their events, or to display your future trips in your blog ?
First of all I jumped the cross-domain AJAX story since I’m reading data from Google server, I simply written a small PHP script which will read the feeds and resend it again. Then I used my old AJAX RSS Reader, Google calendar don’t deliver RSS but it’s just XML, it’s not a big deal there is just few changes on the code the make it working.
So to get started I created a shared calendar that I called “AJAX Events”, I have added by the was conferences and seminars but it’s all happen on may 2006 and I don’t know how to make feeds return a longer period. Shared or not shared, since I’m using a PHP script to read from Google calendar you can even use the Private Address which will give you access to your events feeds directly from the reader. Then just copy the url to use it in the script below eventrss.php
I have tested the script with Firefox 220.127.116.11 and IE7, it should work also without problems on other browsers. Well a small XML feature and you are open to the world, just use your imagination to personalize the css and find how you can use your calendar.