Free JavaScript Event Calendar
Frequently Asked Questions
Home
History/Background
My Enhancements
View Demos
Calendar Gallery
How It Works
Using Enhancements
Customizing Look
Contrib
Holidays & Alternate Dates
Easier Event Editing
Frequently Asked Questions
Downloads
Contact Me
  1. When I am testing the script locally on my computer and I select any month in the "Jump to" drop down box instead of navigating to the month selected it says the page cannot be displayed. The same thing happens with the category layer filter checkboxes.

    This the one part that causes problems when you view it as a file in your browser instead of from a web server - hyperlinks work, but form elements do not. If you want to test this as well you can install a web server on your computer such as Microsoft's IIS (or PWS) which I believe they include with their operating systems, but may not get installed by default. For testing I like the free Xitami server from imatix.com or the free TinyWeb server from RITLabs.

    The important thing to check is that the range and values of the dropdown list are correct.

  2. My calendar ends in December of this year. How do I show past December?

    By default, the calendar begins in January and ends in December of the current year. If you have defined any events in your event file outside this range, it will automatically extend the months as far back and forward as needed to include them. You can also extend it explicitly it by assigning a yearmonth value to the configuration variable LastMonth (i.e. LastMonth = 200512; // for December 2005). There is also a corresponding, but less frequently used, FirstMonth configuration variable. If you prefer your calendar to automatically extend to December of the following year by default, then setting the following should work:

    LastMonth = 12 + 100*(GetFullYear(today)+1);

  3. Is there a way to add a regularly occurring event without having to figure out and enter each date?

    Events are tied to a specific date, while holidays are more flexible and can be tied to a date, or a weekday, or a combination of the two.

    You could define these repeat events as "alternate holidays" by defining a function like the following and setting "showAltHoly = true", but you'd also have to add logic for any exceptions as well. Note that if you use the "export event" feature, holidays are not currently included for export while events are. The next version will include an option to export holidays also.


    function getAltHoly(day, month, year) { 
         if (month==6 && year==2004) {
              return; // skip this month
         } else if (day == NthDay(third, fri, month, year)) {
              return "3rd Friday of month";
         }
    }

  4. With all the different JavaScript files I get confused; what pieces go into each file?

    Some people get too hung up on this. In reality the visitors browser effectively in-lines all the JavaScript with the web page, so the placement of JavaScript functions and commands is mostly about ease of maintenance.

    I like to separate function definitions (which I usually do not change often) from configuration settings and function calls, such as event definitions, (which I am more likely to change). I prefer to group most configuration settings into a "common.js" script used by both the regular web page and the printer-friendly page so I can make a change that applies to both instead of making it in one HTML page, but forgetting the other.

    The important thing is to make sure that you include any scripts which define the functions you call to avoid serious problems with the calendar display. For example, if you activate a feature such as "showHolidays" which requires an additional function, you must provide the required function somewhere in your HTML page or one of the script files it references.

  5. I set showMsgBox = "false", but the message boxes still appear on the calendar. How do I disable the message boxes?

    Be careful with your quotes here - showMsgBox is supposed to be a Boolean (true or false), not a string ("true" or "false"). If you set it to the string "false", because it has some value it actually ends up being interpreted as true. This also applies to other Boolean configuration settings.

  6. I like the message feature, but I do not like dealing with the varying presence and length of the message box areas on the calendar. Can I add a message box outside the calendar? Also, can I include images and hyperlinks in the message text?

    I did not plan for that when creating the message box feature, but it can be used that way. The "AddMsgBox" functions accepts an optional third parameter to specify the number of adjacent cells required in a message box for that message to display. In the current version no message box can be larger than 5 adjacent cells, so using a value such as 7 will prevent that message from being displayed on the calendar. If you then add "DoMsgBox(gloYearmonth,7);" after "Calendar()" in your html page, it will add a message box below the calendar containing the message for the month in the calendar display. To disable message boxes on the calendar, just set "showMsgBox = false;" which will not affect message boxes outside the calendar.

    You can embed HTML tags within message text to include images and hyperlinks.

  7. Is there anyway to specify more than 1 "special day" such as Saturday and Sunday?

    Currently not in the present release. I inherited SpecialDay from the predecessor script and had not done anything with it yet. The next version will include a new DefineSpecial function which lets you define one or more special days, but for compatibility it will still accept special days defined the original way to avoid breaking existing calendars.
  8. I have a lot of events and the various colors of the day numeral in each calendar cell used to highlight that category of day become more confusing than helpful.

    This may get even worse because I am adding an option to color the date numeral if the day is a holiday. The color highlighting can end up being more confusing than useful if Today, Holiday, SpecialDay, and Event are all set to different colors, but you do not need to define all of them as different colors - choose carefully.

    The version currently in development also includes three new options to highlight types of days: a reverse color mode for the numeral, a cell background color, and a cell border color. Another forthcoming feature which was suggested to me is a Fade Mode where the color of numerals for days before "Today" in the current month are set to "ColorFade". You can see these features in action now at the coffee.pikesys.com site.

  9. Internationalization: How can I change the month and day names from English to another language? How can I have the calendar start the week on Monday instead of Sunday?

    In the current version you need to edit the script and replace the definitions for following arrays: months, weekdays, and days. The next release will allow you to override the English names without having to edit the calendar script. You can see a version of the coffee calendar mentioned above with French month and day names at the cafe.pikesys.com site.

    Changing the week to start on Monday can be accomplished with just a few changes in the script which I will supply if you Contact Me. In the future I will add this as an option also.

  10. How can I get development versions to try out?

    I have not been making development versions available here while I test them and package them up along with sample files and release notes. If you do want to try out the current development version, then Contact Me. You must accept the fact that things may change from the development version to the released version.

If you like our script, please rate it!

 

Last updated on