durusmail: quixote-users: Calendar Widget
Calendar Widget
2003-05-27
Calendar Widget
Mark Bucciarelli
2003-05-27
On Monday 26 May 2003 11:17 pm, Martin Maney wrote:
> On Mon, May 26, 2003 at 10:20:12PM -0400, Mark Bucciarelli wrote:
> > A subset of what webcalender.sf.net.  Multiple people can log on
> > and add events.  You can layer other people's schedules on top of
> > yours. Interface with Palm and Outlook.  Make coffee in the
> > morning.
>
> Okay, that explains the disconnect I was feeling.  Is your
> motivation to produce a similar application, spinning off useful
> widgets along the way, or are you more interested in the widgets
> that the webcalendar seems to imply for themselves?

The latter.  I don't know quioxote well enough yet, but I envision a
use case like this:
(1) instantiate a calendar widget
(2) set the month + year
(3) pass it some events
(4) render a month view

My initial thought was that events be responsible for rendering
themselves on the calendar.  However, this breaks as soon as the
event impacts the HTML table structure.

For example, if you have events (which span multiple days), and you
don't want verticle lines to break up the rendered event (google on
scoutplans, a perl cgi script that does a beautiful job of laying out
multi-day events), then the row span of the cell of the day just
previous to the start of the vacation is different.

row 1       -------------------------------------------
row 2   | 25    | 26    | 27    | 28    | 29    | 30    | 31    |
row 3   |       | a four-day vacation   |       |       |
row 4   |       | evt   |       |       |       |       |       |
row 5   -------------------------------------------

> The latter is
> what I'd be interested in, although almost all of my use of
> calendars involves looking at multiple entities (people in
> webcalendar; facilities (labs, presentation stations, etc.) in my
> use) at the same time.

So, maybe you could just construct a custom kind of event.  I should
probably abstract the calendar filter somehow--that's definitely one
widget I was going to build.  Webcalendar lets you assign categories
to each event and then has a select box to filter events by category.
In your app, you would want to filter on entity and person.

>  I also need some idiosyncratic times rather
> than the common small-fractional-hour blocks I see in their demos.

[...]

> For a while I had a dream about
> handling both wall-time as well as class-period-based scheduling,

Ok, I get it.  Period one might run from 8:16 to 9:23, and you
schedule things by period.  Statistics is on Period 1 on M/W/F and so
on.

Hmmm, so the time grid displayed on the calendar might be dependent on
the types of events you have.  In this case also, the HTML table
structure depends on the events.   Hmmm, I'll be on the lookout for a
clean solution to this.

--
Mark Bucciarelli, www.hubcapconsulting.com
    He who receives an idea from me, receives instruction himself
without lessening mine; as he who lights his taper at mine receives
light without darkening me.   -- Thomas Jefferson


reply