Execute SQL procedure that disables dates in Datepicker

0

I have a system with a datepicker, and I want some dates to be disabled automatically. These dates should automatically populate the array that disables the dates. (Today is manual as the function below shows)

var disableddates = ["10-12-2015", "11-20-2015", "12-21-2015", "12-22-2015", "12-23-2015", "12-24-2015", "12-25-2015", "12-28-2015", "12-29-2015", "12-30-2015", "12-31-2015", "1-1-2016"];

I have a SQL Server procedure that lists all those dates. How do I call it before calling the datepicker by disabling those dates?

    
asked by anonymous 04.12.2015 / 12:30

1 answer

0

I made a call to the procedure before the call to the disable dates function, and I passed the result by variable, with the dates concatenated and formatted the way it enters the datepicker: var disableddates = <% = vardatasfim% >

The variable vardisableddates is used in the function to block weekend, and used as a parameter in beforeShowDay.

    
09.12.2015 / 11:06