I am using the jquery datepicker in my project. I am accessing the database using ajax to retrieve dates that need to be highlighted for every change of month. This is done using the onChangeMonthYear: function(year, month, inst) and the beforeShowDay: function(dateToShow) events. The dates are being highlighted appropriately but the problem I am having is that it really takes a long time to highlight the dates in the beforeshowday event. I would like to point out here that the access time on my local machine is really rapid and have eliminated the fact that the response time from the server is causing the delay in highlighting.
I have also tried to use duration: 'fast', but that has not helped either.
1.How can I increase the display time of the dates? or
2.how can I unable the calendar, such that till the dates are being displayed, the user can`t navigate through other month.