3 Replies Latest reply on May 22, 2009 5:38 AM by Ilya Shaikovsky

    Calendar client side styling doesnt work

    senthil kumar Newbie

      I am using the code given in JSP page for calendar styling.

      var curDt = new Date();
      function disablementFunction(day){
      if (day.isWeekend) return false;
      if (curDt==undefined){
      curDt = day.date.getDate;
      if (curDt.getTime() - day.date.getTime() < 0) return true; else return false;
      function disabledClassesProv(day){
      if (curDt.getTime() - day.date.getTime() >= 0) return 'rich-calendar-boundary-dates';
      var res = '';
      if (day.isWeekend) res+='weekendBold ';
      if (day.day%3==0) res+='everyThirdDay';
      return res;

      But the calendar doesnt work. There is no pop up when i press the calendar button.

      day.date is undefined. What type of object is day ?