Forum Moderators: open

Message Too Old, No Replies

Certain members of array not displaying

for "event calendar"

         

vkaryl

1:38 am on May 23, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I'm trying to implement DHTMLcal from javascriptsource. Comes with DCEvent.js, DHTMLcal.js, and some js that goes into the <body> of the page (and which won't validate *sigh*).

Here's what the "DCEvent.js" file includes:

dcEvent( 1, 1, null, null, "New Years Day", null, "#204631", "#D0E3D1", 1 );
dcEvent( 2, 14, null, null, "Valentines Day", null, "#204631", "#D0E3D1", 1 );
dcEvent( 3, 17, null, null, "Saint Patricks Day", null, "#204631", "#D0E3D1", 1 );
dcEvent( 6, 2, null, null, "PVSSD Board Meeting 6:00 pm at PV Fire Station", null, "#204631", "#D0E3D1", 1 );
dcEvent( 7, 4, null, null, "Independance Day", null, "#204631", "#D0E3D1", 1 );
dcEvent( 10, 31, null, null, "Halloween", null, null, "#204631", "#D0E3D1", 1 );
dcEvent( 12, 25, null, null, "Christmas Day", null, "#204631", "#D0E3D1", 1 );

This should show the text info in dark green on a light green box for those days. This works fine for New Year's Day ( 1, 1, ) PVSSD board meeting ( 6, 2, ) and Independance Day ( 7, 4, )

It doesn't show the others at all. Nothing, no text, no color. I can't myself see any difference in the way they're set up. Perhaps one of you could help me?

vkaryl

3:23 pm on May 23, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hmmm. I'm wondering now if it may have something to do with the fact that those dates which display correctly are only single digits for both month and day? I'll play with this a bit more.... wonder if I can contact the author....

Alternative Future

3:47 pm on May 23, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi vkaryl,

Have you tried changing the dates around:

dcEvent( 31, 10, null, null, "Halloween", null, null, "#204631", "#D0E3D1", 1 );
dcEvent( 25, 12, null, null, "Christmas Day", null, "#204631", "#D0E3D1", 1 );

It might have to do with the date format it is in i.e. US and UK date are different.

-George

vkaryl

4:37 pm on May 23, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Thanks, George!

I had that thought as well, but what actually happened was this....

I downloaded this from javascriptsource. That site gave no installation info to speak of. Just now I went to the author's website to see what I could discover.

What I downloaded was NOT a freeware fully featured version (not addressed on the site as far as I remember). The demo version allows events to show only on the first 9 days of any given month.

The full version is $49, which I will probably fork over. It is a really great little calendar, and the one site I need it for needs it desperately. My only real objection to the licensing structure is that you have to license separately for EACH domain you want to use it on (like imint's menu systems). This could get way too expensive for people with a lot of domains to work with. I didn't go so far as to see if there's bulk licensing available....

Alternative Future

4:47 pm on May 23, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



vkaryl,

>>The demo version allows events to show only on the first 9 days of any given month

Ahh I see... Makes more sense now.

It might be worth your while making a script of your own, there are plenty examples and free JavaScript source available around to mix and match to get what you want it to do.

-George

vkaryl

9:52 pm on May 23, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I'd thought about that, as well, George. I needed THIS one RIGHT NOW, natch. I did find a nice shareware ($25 for however many places you want to use it) from webcal. It has a few things I don't like (such as the fact that the text won't wrap in the table cells - damn things JUST KEEP GROWING!); I think I'll use it for now because I'm time-strapped, and tweak on it after I retire in August.

At which point, of course, I'm going to bug you guys to death here.... *laughing* I am NOT a real great coder - MUSHcode yes, js/cgi/perl et al no....

Alternative Future

9:54 pm on May 23, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



vkaryl,

>>At which point, of course, I'm going to bug you guys to death here....

That's what we are here for ;-)

-George

scriptcalendar

6:08 pm on May 28, 2004 (gmt 0)



Greetings, I am the author of [scriptcalendar.com...] the script mentioned in this thread.

True, the version available at the javascript.internet.com is only the demo script, and it's also an old version 2.04. The newest version is 4.06 and soon to be version 5.00 with xml event support.

I would be happy to offer a price of $25 to match the other offer.

Thank you,
sales@scriptcalendar.com
[scriptcalendar.com...]
a javascript event calendar

vkaryl

8:07 pm on May 31, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hello scriptcalendar.

I hadn't had time to go back to your site to check various things, since we left for the long weekend after I got off work on Thursday, and the week previous was CRAZY, both at work and not.

As I said, I am using the webcal script for right now. I can put up with the copyright info for a couple of months, it's not that obtrusive.

Thanks for your VERY considerate offer. I will get back to you on this as soon as I have time to breathe (NOT this week - two days off work buries me, and NO ONE ever takes up any slack. I'll be too tired evenings to think about anything but dinner and bed....) By the weekend I should be able to talk coherently....

Thanks again.