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

    Calendar client side styling doesnt work

      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 ?

        • 1. Re: Calendar client side styling doesnt work

           

          "sen_cool" wrote:
          I am using the code given in JSP page for calendar styling.

          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 ?




          This is the code in site


          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;
          }

          • 2. Re: Calendar client side styling doesnt work
            nbelaevski

            Hi,

            Code snippet doesn't give enough information to answer the question. Post how do you call these functions.

            • 3. Re: Calendar client side styling doesnt work
              ilya_shaikovsky

              Also which RF version used.