In an attempt to showcase my database entries on a calendar, I have broken down the process into three steps. The first step involves retrieving data from the server in json format. Next, I iterate through the data to construct an array. Finally, I create an array of arrays that adhere to the specifications outlined by fullcalendar.
While I have managed to successfully complete the first two steps and manually input the results which worked perfectly, the challenge arises when the data changes over time. I aim for this process to be automated without the need for manual intervention.
Upon attempting to paste the data, it often appears as an indexed array (0:..., 1:..., 2:...) which seems to impede the functionality. Even upon converting the data into a text variable or pushing it into an array, the display remains elusive. This has been quite frustrating.
It was later revealed that my approach was indeed correct; however, an issue arose due to the use of a variable named "calendar" elsewhere on the page. While this posed a coding problem, it was unrelated to the current page's script.
Below is the code breakdown illustrating where I currently stand in this process, although it lacks elegance as it has been reduced to text for testing purposes:
// ... see original message for rest of code ...
For reference, I am utilizing Chrome and the developer tools to monitor the variable console log.