Try this:

function nationalDays(date) {
    for (i = 0; i < natDays.length; i++) {
      if (date.getMonth() == natDays[i][0] - 1
          && date.getDate() == natDays[i][1]
          && date.getFullYear() == natDays[i][2]) {
        return [false, natDays[i][0][1] ];
      }
    }
  return [true, ''];
}


Not tested but I believe it's somewhere along these lines.

On Thu, Jan 29, 2009 at 9:49 AM, Led <[email protected]> wrote:

>
> I trying to define a availability calendar using the ui datepicker and
> inspired in an example on ui site.
> The problem is that i can't figure how to use the year in this
> example  with the beforeShowDay .
>
> please take a look at http://realferias.com/datepik.asp?cod_casa=15.
>
> you will see that the same day is in red in  every year and i just
> want to filter the years also. thank you .
> >
>


-- 
Ca-Phun Ung
+ http://yelotofu.com
+ hongkong, zce, jquery, php, css, html

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery UI" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/jquery-ui?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to