Hello everyone! I'm new to the forum, it's great to meet you all.
I have a question and I'd really appreciate some guidance.
I'm using a JQuery datepicker 1.7 as a calendar on the sidebar on the user's view. (It's the best option I could find)
I would like to highlight in the calendar a group of days starting from initial date (startDate) until the end (endDate) of several reminders I have in an array. This way, the user will be able to see on the calendar of the application, all the available days he has left in order to take action for each of his reminders.
I already have my array of reminders which I can access from the view.
There is another function, namely, highlightDays which is the one that is causing me trouble:
It's parameter is the array "reminders" such that reminders[i].start is the startDate, and reminders[i].end is the endDate of reminder i, with i = number of reminders in the array.
The problem is the calendar won't even show up when I open the application and log in. And the Apache Log or output do not show any errors. I will keep investigating, but I'd really appreciate some guidance!
P.D: I can access the elements of the array of reminders (endDate, startDate) and print these dates on screen, so that means the reminders array is not empty.
Thank you once again for taking the time to read, and sorry for the long post.
After lots of research, I did some changes to the function, like this:
This is my selector:
and then highlightDays function would be
Will let you guys know of any further advancements!!
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop