pab1953
06-19-2003, 10:05 PM
I need a calendar that has the size and functionality of the calendar you find on blogs like Moveable Type. In other words, it's:
- < 160 pixels
- Lets you attach a link to any date
- Highlights dates that have a link
- Leaves unlinked dates unhighlighted
The closest I came was a calendar at this link: http://students.infoiasi.ro/~mishoo/site/calendar.epl But it requires some tweaking to make it do what I want and I only know enough JS to get me into trouble.
The author emailed me some suggestions (see below) for altering it but they are beyond me.
Can anyone help me edit the code referenced above? Or does anyone know of a functional js blog-style calendar?
Thank you.
Philip Bishop
NOTES FROM CALENDAR AUTHOR
Basically the "onSelected" handler should go to the location for that
date. From JavaScript code you can do this by changing the location
variable, someting like this:
location.href = "http://blah.com";
// disclaimer: I might have forgotten the exact syntax; ask Google
You use "setDisabledHandler(your_function)" to disable some dates.
your_function receives a JS Date object and should return true if that
date is to be disabled, false otherwise.
Flat calendar is possible (see the demo page, or cal.html in the
distribution archive for source code example; there you can also find
how to disable dates).
Any ideas -- for hacking the above calendar or for one that does what I want?
- < 160 pixels
- Lets you attach a link to any date
- Highlights dates that have a link
- Leaves unlinked dates unhighlighted
The closest I came was a calendar at this link: http://students.infoiasi.ro/~mishoo/site/calendar.epl But it requires some tweaking to make it do what I want and I only know enough JS to get me into trouble.
The author emailed me some suggestions (see below) for altering it but they are beyond me.
Can anyone help me edit the code referenced above? Or does anyone know of a functional js blog-style calendar?
Thank you.
Philip Bishop
NOTES FROM CALENDAR AUTHOR
Basically the "onSelected" handler should go to the location for that
date. From JavaScript code you can do this by changing the location
variable, someting like this:
location.href = "http://blah.com";
// disclaimer: I might have forgotten the exact syntax; ask Google
You use "setDisabledHandler(your_function)" to disable some dates.
your_function receives a JS Date object and should return true if that
date is to be disabled, false otherwise.
Flat calendar is possible (see the demo page, or cal.html in the
distribution archive for source code example; there you can also find
how to disable dates).
Any ideas -- for hacking the above calendar or for one that does what I want?