In order to add dynamic functionality to the calendar, for example display information when a user clicks on a date, create a Spry Data Set, and link it to the Calendar. The Data Set can be in either HTML or XML. Select one type depending on the contents of your dataset, and then complete the Spry Data Set Wizard to convert from the original Data Set to the Spry version. In the original Calendar_Demo file, click “Insert,” “Spry,” and “Spry Data Set” This opens a window to “Specify Data Source.” Select the Data Type in the first box—either HTML or XML depending your source. The default Data Set Name is ds1; change this if you wish. If the data source uses tables, then set the “Detect” box to that method. If the data source used div commands, then change to that in the Detect box. Complete the steps in the Wizard by specifying the Data File using the “Browse” button in the next field.
Refer to the comments within the lengthy JavaScript for explanations on activating dynamic links when a user clicks on a date. How this is done depends on the individual format and type of your own linked Spry Data Set. When you have gone through all the steps, Click “Done” and save the file. Test the results by clicking on “Live View” or the Globe icon to preview the page. If everything is correct, when you click on a date, the associated event should appear in a popup.