Simple PHP calendar scripts (Full Version)

All Forums >> [Community] >> OutFront Discoveries



Message


womble -> Simple PHP calendar scripts (5/9/2007 19:22:26)

I've found a coupple of nice little simple PHP calendar scripts - first one here produces a nice little calendar (there's an XHTML version on that page as well) that can easily be styled with some CSS.

The second one - here - is again XHTML strict/CSS, and has a nice little tooltip for events that's editable, and supports recurring events (monthly and yearly). It uses a flat file, so there's no database required.

I'm trying to use the second one on a site I'm working on at the moment, but there are some problems with it with regard to accessibility. The table markup for the calendar isn't particularly accessible, but that's easily fixable with a bit of tweaking. It's keyboard navigable in that you can tab through the cells and activate the add/edit events by tabbing to the required date and hitting return, but the tooltip's set up to activate on mouseover I think, although with javascript disabled the tooltip still appears - which kind of suggests it's perhaps a CSS thing (but I can't see anything in there). Adding and editing events isn't possible without javascript either - no little window opens to enter/edit the details. I'm going to take another look at it tomorrow though when my eyes are more open and see if it's tweakable.

I suppose theoretically from a user's point of view, you could put the notable dates in a <noscript> tag for the no javascript scenario, but that seems a messy way of doing it and doesn't address the keyboard navigation angle. Hmmmm, I'll ponder some more tomorrow....




BobbyDouglas -> RE: Simple PHP calendar scripts (5/10/2007 1:23:33)

I might actually be able to use parts of the second one on one of our new sites.




Tailslide -> RE: Simple PHP calendar scripts (5/10/2007 2:29:31)

Nice find Rach!




womble -> RE: Simple PHP calendar scripts (5/10/2007 6:41:33)

Mmmm, the second one is rather lovely isn't it? [:)] Pity about the accessibility angle though, but I'm gonna take another look at it today now that my eyes are fully open and see if I can improve it. Last night I tried changing the 'onmouseover' to 'onfocus' and 'onblur' which failed abysmally, but then remembered that they're for inputable elements, which might have something to do with it! [:D] Logic would suggest that there ought to be some sort of event handler for none-inputable stuff (looks like I'd better dig the js books out again), or failing that I might have to see if I can use some PHP to pull out the current month's events and display them under the calendar, which I suppose would solve the javascript off scenario problem.




womble -> RE: Simple PHP calendar scripts (5/10/2007 9:29:24)

[sm=tantrum.gif] Grumpy R Us!!!!

Wombley has spent the morning trying to figure out this whole tooltip/keyboard navigation/javascript problem, unsuccessfully. Someone over at Accessify suggested wrapping the days in an empty link, as browsers can pass focus to links, solving at least the keyboard navigation issue....trouble is, they're already wrapped in a link to trigger the add and event pop-up, and it's still not playing.

Plan B is therefore to try and get at the event data held in the data file, which I should be able to use the array of data from to write out a list of events under the calendar. Not ideal and it's going to be PITA, but it's the only way forward I can think of at the moment.




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
4.882813E-02