Selecting only saturday
2008/05/05 16:19
Viewed 2338 times
Replies: 1/2

hi all,
i tried this script for select only the saturday and i tried this code:

<script type="text/javascript">

function disallowDate(date) {
  // date is a JS Date object
  var wa =date.getDay();
  if (  date.getDay() == 6) {
    return false; // enable saturday
  }
  return true; // disable  other day
};


Calendar.setup({
displayArea : "data_sel",
daFormat : "%A, %B %d, %Y",
inputField : "giorno_arrivo",
ifFormat: "%d",
showOthers: false,
weekNumbers: false,
dateStatusFunc:disallowDate

})
</script>

this code work partially because i can't select the saturday

have you any idea for esolve thistrouble?



tnx a lot


Google