Forum Moderators: phranque

Message Too Old, No Replies

Calender with holidays included

         

aspets

4:34 pm on Feb 3, 2003 (gmt 0)

10+ Year Member



Hi!

Have already made a calender in JSP, but would like to mark holy days red. Holy days differ from country to country though. Is there some class/method that you can set which country your from and receive back the holidays for that year your in?

Yours Age

DrDoc

7:20 pm on Feb 3, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You can (sort of) find out where the visitor is from, at least narrow it down, by checking the IP ..

A better method, however, is to let the user set this variable him-/herself, and store the info in a cookie (this would allow, for example, an international student to receive a calendar customized for his/her home country).

However, there's no way you can "receive back" the holidays for that country/year without storing them in some kind of database first.

I suggest going to one of the many e-card Web sites .. they usually have a fairly extensive list of holidays. You can also search on the net for specific countries and their independence days, flag days .. etc.

Providing a complete list is a very demanding task.

If you find an extensive list somewhere, please post the URL here. That will help future users with the same problem.