Bootstrap Datepicker and Ajax issue

Job ID: 31808768

Budget: $10 – $30 AUD

When using a javascript datepicker I need to get dates that are to be highlighted via a AJAX source. Once the data has been retrieved the dates of the datepicker will be highlighted. The AJAX call need to occur also when the month has changed.

Process when the datepicker is clicked on:
1. An ajax call to a php page is made passing the calendar month and year.
2. The ajax page returns dates for the selected month that is to be highlighted.
3. The calling datepicker then displays the calendar with the dates returned from the ajax page highlight.

When a new month is displayed steps 1 to 3 are performed again.

I have a sample page already setup with how it should work with dates, except its not using ajax as the source
URL: http://maicomdesigns.com.au/datepicker/index.php

Coding the ajax is not a problem and I have also included it in the script however I am not too familiar with this datepicker script and adding it to the correct callback events.

The script must work with these versions:
Bootstrap v4.1.3
Datepicker for Bootstrap v1.8.0 (https://github.com/uxsolutions/bootstrap-datepicker)
Related categories: PHP JavaScript AJAX HTML jQuery / Prototype