An excellent example to show you how simple it is to use the dynamical date range constraint.
All past dates are not selectable.
You won't be able to start after the end-date or end before the start-date.
You can prevent the user from editing the input boxes directly by setting it to readonly, e.g.
Category:
Many times I was asked to add this or that feature to the calendar script, some of these requested features were quite essential such as date range checking, and some were just optional such as long date format.
However, each user has his own needs for a calendar script, features critical to this user might be just wastes to another. I realized that an all-in-one calendar is not going to work very well for all the users, and I should code the calendar in a way that each user will be able to pick the desired calendar features exactly, and thus comes the Xin Calendar Mods.
Xin Calendar Mods is a collection of the core scripts and their mod scripts. The core scripts are the revised and trimmed versions of the Xin Calendar scripts, they provide the basic calendar function (aka, pops up to pick a date and you can change the calendar style), additional calendar features, such as date range checking, are coded as separated mod scripts.
When an user embeds the calendar to his web page, he will include the core script and the mod scripts he needs, and use the function calls provided by mod scripts to tailor his calendar
Category: