bradym.net

Random thoughts of a Code Monkey
  • Home
  • About Me
  • JavaScript
  • Misc
  • MySQL
  • PHP
  • Windows
Home > JavaScript > Can’t get JCalendar to select a specific date when opening

Can’t get JCalendar to select a specific date when opening

January 2nd, 2008 Leave a comment Go to comments

There is an error in calendar-setup.js that prevents the setting of an initial date for the calendar. Go to line 159 and replace the code:

if (dateEl) params.date = Date.parseDate(dateEl.value || dateEl.innerHTML, dateFmt);

with:

if (dateEl && (dateEl.value || dateEl.innerHTML)) params.date = Date.parseDate(dateEl.value || dateEl.innerHTML, dateFmt);
Categories: JavaScript Tags: JavaScript, Jcalendar
Comments (0) Leave a comment
  1. No comments yet.
Subscribe to comments feed

Opera friendly PHP redirect Setting up Wireless with DSL
Top
Copyright © 2008-2009 bradym.net