Changes of Event Calendar

Discussion in 'JavaScript' started by Megin, Jun 25, 2008.

  1. #1
    Hello I download this event calendar: http://www.in-sert.php5.sk/evtcal/evtcal.zip

    I try to change starting week from Mondays by changing this:
    firstDay = firstDate.getDay() + 7;
    Code (markup):
    and retyping days in function createCalendar()

    But after that is not green marked present day. It is but in 2009 year.

    I try to change also this:
    firstDate = new Date(String(monthNum)+"/0/"+String(yearNum));
    Code (markup):
    but it is the same.

    Could some one help me. How to change calendar to starting weeks from mondays and left marking present day?
     
    Megin, Jun 25, 2008 IP
  2. gsexton

    gsexton Peon

    Messages:
    8
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I've looked at the code. The days of the week are hard-coded with a week start on Sunday. You would have to change the CreateCalendar function to do what you want. This would take a fair amount of Javascript coding skill.

    Javascript doesn't really provide any locale information that would enable the code to pick up on the correct starting day of the week without having it hard coded.

    I'd recommend you shop around for a different calendar system.

    There are any number of HTML generators/calendar creators around. CoffeeCup, and HTML Calendar Maker Pro are a couple. They're comparable to the SW you referenced.

    If you need something more powerful, you might want to take a look at our product, Connect Daily Web Calendar.

    http://www.mhsoftware.com/connectdaily.htm

    We also have a white paper on choosing a web calendar. It's available at:

    http://www.mhsoftware.com/resources/CalendarSelection/
     
    gsexton, Jun 26, 2008 IP