Building a better Calendar... with no JavaScript

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
User avatar
Ambush Commander
DevNet Master
Posts: 3698
Joined: Mon Oct 25, 2004 9:29 pm
Location: New Jersey, US

Building a better Calendar... with no JavaScript

Post by Ambush Commander »

God, what is it with programmers and JavaScript? You give 'em sprinkles and they'll make the whole cake with it. WebCalendar is an application I'm trying and while it's fairly good on the feature side, the site is as dependent on JavaScript as a crack-whore is on cocaine. And the user interface is terrible.

::sighs::

I really don't want to roll my own, because I understand the intricacies of the global time system, but this is preposterous. Does anyone have any suggestions for an open-source php calendar that doesn't abuse JavaScript? Thank you.
User avatar
jayshields
DevNet Resident
Posts: 1912
Joined: Mon Aug 22, 2005 12:11 pm
Location: Leeds/Manchester, England

Post by jayshields »

Do you have a URL for a live demo?
User avatar
Ambush Commander
DevNet Master
Posts: 3698
Joined: Mon Oct 25, 2004 9:29 pm
Location: New Jersey, US

Post by Ambush Commander »

http://webcalendar.sourceforge.net/demo/week.php

Default colors are pretty bad, but they can be fixed, like here: http://www.jpsband.org/calendar/month.php
User avatar
sweatje
Forum Contributor
Posts: 277
Joined: Wed Jun 29, 2005 10:04 pm
Location: Iowa, USA

Post by sweatje »

I have used this one, but it still uses js.
User avatar
Ambush Commander
DevNet Master
Posts: 3698
Joined: Mon Oct 25, 2004 9:29 pm
Location: New Jersey, US

Post by Ambush Commander »

I am not pathologically opposed to JavaScript: I'm pathologically opposed to it when it is misused. So if the application degrades gracefully when JavaScript is turned off, I'm using it. Going off to check it out. 8)

Edit - Oh, it's totally made out of JavaScript. That's a no go, unfortunantely.
User avatar
Burrito
Spockulator
Posts: 4715
Joined: Wed Feb 04, 2004 8:15 pm
Location: Eden, Utah

Post by Burrito »

viewtopic.php?t=31864

there is a little JS, but the meat of it is php
User avatar
Ambush Commander
DevNet Master
Posts: 3698
Joined: Mon Oct 25, 2004 9:29 pm
Location: New Jersey, US

Post by Ambush Commander »

Gah, the code is all borked... plus it doesn't schedule events... (sorry, should have been a bit more clear).
Charles256
DevNet Resident
Posts: 1375
Joined: Fri Sep 16, 2005 9:06 pm

Post by Charles256 »

yes..i realize the code could be prettyed upa b it but it's ALL PHP
viewtopic.php?t=38254&highlight=
refer to my first post in that thread:-D
sheila
Forum Commoner
Posts: 98
Joined: Mon Sep 05, 2005 9:52 pm
Location: Texas

Post by sheila »

I've been working with ActiveCalendar
http://www.micronetwork.de/activecalendar/

It uses CSS. It took me a while to figure out events and I had to hack part of it to get it to do exactly what I wanted. Still better than starting from scratch. No javascript but it does allow you to add JS to links. I use JS for popup windows.
yum-jelly
Forum Commoner
Posts: 98
Joined: Sat Oct 29, 2005 9:16 pm

Post by yum-jelly »

::Ambush Commander::


Ya, no JS! So when are going to finish it I need a nice tv guide event planner, :wink: Boy am I lazy! I think it looks good, maybe some CSS would make it much prettier for those that think beauty comes before content! No JS is really nice as it seems people think it's more widely used than it really is. Another bookmark added. Oh, ya how about the year view, why not even up the monthly calendars adding previous ending and next starting days to fill the rows with even content, also adding week numbers would be cool!


yj
User avatar
Ambush Commander
DevNet Master
Posts: 3698
Joined: Mon Oct 25, 2004 9:29 pm
Location: New Jersey, US

Post by Ambush Commander »

These are all things the hefty JavaScript solutions do but not the more bare bones PHP classes.

* PHP Event Calendar looks promising: it does use JavaScript but degrades nicely when it's not enabled. yum-jelly: it doesn't have very good HTML and the default styling is pretty bad; also doesn't allow week at view or day at view or show week numbers. But if the code is clean, these are features that I could probably easily add.
* Calendar - A bit too procedural for my tastes, and doesn't have any persistence coding.
* Active Calendar - is not a prepackaged script: it's a php class, so it sorta targets a different demographic. If I'm in a coding mood (and right now I'm still refactoring my main project so I don't want to start writing another applicatiion) it may be my class of choice.

One sort of has to wonder: is a TABLE contextually correct in the context of DATEs?

Still soliciting suggestions.
User avatar
sweatje
Forum Contributor
Posts: 277
Joined: Wed Jun 29, 2005 10:04 pm
Location: Iowa, USA

Post by sweatje »

Harry Fuecks build a calendar component for WACT using PEAR::Calendar. Demo's online with source at:

http://wact.sourceforge.net/examples/sh ... tml_macro/
Post Reply