I have found jscalendar to be an effective, if bloated, solution for integrating a DHTML calendar into an existing form input field requiring a user to enter a date and optionally a time. However, for it transparently effective, it needs to appear when a user brings focus to the form field and disappear when focus is lost. While you can configure jscalendar to respond to an onFocus event for the inputField and to close on single click outside its window, you cannot presently prevent an onFocus event from creating multiple instances of the same calendar as you provide and remove focus from your input field. Fortunately, I have resolved that today.
Read the rest of “jscalendar onFocus and onBlur with Prototype” »