Update: This is a very old entry. The project has a new home at jonabad.com.
Okay! Here’s a trick.
I was reading about xmlhttprequest and xml-rpc recently, and it got me all fired up – full of bright ideas.
Here’s my first practical use – the calendar on this site now uses an xmlhttprequest method to determine what posts appear on what date – give it a try – go back a few months using the calendar.
All you need to do is extract these files to your /wp-includes/ directory, then stick the following line in your template:
<script src="/wp-includes/kcalendar.js" type="text/javascript"></script>
That’s it! *
And, in the interest of accessibility, when JavaScript is not enabled, the original calendar appears.
The current script works in Firefox, but probably not IE. If you want it to also work in IE, then load up this library as well as my one – it makes up for some of IE’s inadequacies.
update – 2004-11-10 – I linked to the xmlhttprequest script to give it IE compatibility. As far as I know, though, a creative commons license can’t be used for commercial purposes, though – so if you use this script for your work, then you’ll have to write your own IE compatibility layer.
update – 2004-11-11 – I just noticed that Dean Edwards’ IE compatibility layer has been updated with a new xml objects module which can emulate Mozilla’s xmlhttprequest functionality.
update – 2004-12-21 – the script was designed to work with a fairly fresh CVS install of wordpress. If you have edited your template at all, make sure that the calendar is contained in an element which has id="calendar"
to identify it.
update – 2005-07-14 – noticed this page is still getting a few hits. Please go here to get the most recent work on this project.