Hudson Valley Activists - Example of a Syndicated Calendar

A very creative approach that I didn't know was possible.

A small version of our web calendar on your site (Hudson Valley, ActivistResource.org)

They use a php script to create javascript. So the PHP script accepts parameters (ex. how many events to show, what mile radius to use) and then creates javascript that uses the document.write command to write html for your website.

The advantage of this approach is that you can call an external php script with parameters and include it in your site. It's like a type of web service.

This beats my method of including static-html using php (this includes a calendar that is generated once per day using a cron job):

@require ('http://www.campusactivism.org/syndicate/calendar-short.shtml');