troubleshooting Question

calendar populated using XML

Avatar of Mike Rudolph
Mike RudolphFlag for United States of America asked on
9 Comments1 Solution444 ViewsLast Modified:

Not certain if this can be accomplished but I created a table to house a calendar. Each date as a tool tip feature when I mouse over the date the event for that date shows as a tool tip.

At present, I have to 'hard code' all the events into the table within the function. I would really like to load these values in a flat file or xml file and pull these dates from here. I often have users who are not familiar with html updating the calendar. It would be easier for these users to update the calendar by inputting events in a separate xml flle rather than trying to fit the code withing the javascript/html constraints.

I do not want to use a flash/xml solution as I am trying to keep my site free of flash. I do not have PHP server running so I just need to see if it's possible to use only javascript/ajax/html to read content from XML.

Of course I am open to other suggestions.


Below is an example of my table.

<table id="calendar" cellspacing="0" cellpadding="0" summary="This month's calendar" border="1">
                <caption><a href="calendar.html">September</a> (Quick Reference) </caption>
                  <th colspan="7"><a href="documents/YearAtAGlance2010.swf" target="_blank">Year at a Glance Calendar 2010-2011</a></th>
                    <th scope="col" abbr="Sunday" title="Sunday">S</th>
                    <th scope="col" abbr="Monday" title="Monday">M</th>
                    <th scope="col" abbr="Tuesday" title="Tuesday">T</th>
                    <th scope="col" abbr="Wednesday" title="Wednesday">W</th>
                    <th scope="col" abbr="Thursday" title="Thursday">T</th>
                    <th scope="col" abbr="Friday" title="Friday">F</th>
                    <th scope="col" abbr="Saturday" title="Saturday">S</th>
                 <!-- date begin here -->
                    <td><span class="hotspot" onmouseover="'-Football - VAR KBHS v. Kinnick, 1900, Mike Petty Stadium<br />-KMS Principals Coffee<br />-LMS SAC Meeting<br />-ZES KN Home Visits');" onmouseout="tooltip.hide();">1</span> </td>
                    <td><span class="hotspot" onmouseover="'-KES PTO Meeting<br />-KSES Open House<br />-ZES KN Home Visits');" onmouseout="tooltip.hide();">2</span></td>
                    <td><span class="hotspot" onmouseover="'-ECK 1st Grade Orientation<br />-ZES KN Home Visits<br />-Air Force Family Day<br />-KBHS: Green vs White Scrimmage 1730 @ Mike Petty Field');" onmouseout="tooltip.hide();">3</span></td>
                    <td> <span class="hotspot" onmouseover="'-Football: SAHS @ KDHS, 1900, RMS');" onmouseout="tooltip.hide();">4</span></td>
                    <td><span class="hotspot" onmouseover="'No School Labor Day');" onmouseout="tooltip.hide();">6</span></td>
                    <td><span class="hotspot" onmouseover="'-1st Day of Kindergarten<br />-KBHS SAC Meeting<br />-LMS Booster Club<br />-AEIS PTO Meeting, 1600<br />-BES PTO Meeting<br />-ECK Boo Hoo Coffee 0900');" onmouseout="tooltip.hide();">7</span></td>
                    <td><span class="hotspot" onmouseover="'-KDHS AVID Parent Meeting 1500<br />Football JV: KDHS @ KBHS Petty Field @ 1800<br />-KMS Open House<br />-ECK Faculty Meeting 0800<br />-Cross Country Meet@KBHS, 1545  ');" onmouseout="tooltip.hide();">8</span></td>
                    <td><span class="hotspot" onmouseover="'-KBHS Open House<br />-KDHS AVID Parent Meeting 1500<br />-RMS Boosters<br />-ECK Sure Start Open House<br />-SHES Open House<br />-ECK Faculty Meeting 0800-0840<br />-ZES Sure Start Home Visits Begin<br />-Volleyball - JV KDHS v. OCSI, KDHS,1700<br />-Volleyball - VAR KDHS v. OCSI, KDHS, 1830');" onmouseout="tooltip.hide();">9</span></td>
                    <td><span class="hotspot" onmouseover="'-BES Early Release<br />-KSES Early Release<br />-Volleyball - JV KDHS v. KBHS, KDHS, 1700<br />-Volleyball - VAR KDHS v. KBHS, KDHS, 1830');" onmouseout="tooltip.hide();">10</span></td>
                    <td><span class="hotspot" onmouseover="'-KDHS Patriotic Program 1900<br />Football - KBHS v. OAHS at OAHS<br />Football - KDHS v. DAHS, DAHS<br />Volleyball JV<br />Developmental Day, OCSI, 1200');" onmouseout="tooltip.hide();">11</span></td>
                    <td><span class="hotspot" onmouseover="'-LMS Open House<br />-AEIS Open House 1600-1700<br />-BHPS SAC Meeting<br />-KES Open House<br />-KSES SAC Meeting<br />-KSES Principals Coffee<br />-ZES Sure Start Home Visits end<br />-Developmental Tennis, KBHS, 1500');" onmouseout="tooltip.hide();">13</span></td>
                    <td><span class="hotspot" onmouseover="'-KBHS SAC Meeting 1530<br />-Fall Photos - RMS<br />-SHES SAC Meeting<br />-Varsity Tennis, KBHS, 1500<br />-Volleyball - JV OCIS v. KBHS, OCSI, 1700<br />-Volleyball - VAR OCSI v. KBHS, OCSI, 1900');" onmouseout="tooltip.hide();">14</span></td>
                    <td><span class="hotspot" onmouseover="'-KDHS Open House<br />-KMS SAC Meeting 1400<br />-LMS SAC Meeting 1415<br />-Fall Photos - RMS<br />-KES SAC Meeting<br />-ECK CSI Meeting 1515<br />-SHES PTO Meeting<br />-ZES Open House 1500-1630<br />-Cross Country Meet@OCSI, 1545');" onmouseout="tooltip.hide();">15</span></td>
                    <td><span class="hotspot" onmouseover="'-Sure Start 1st Day<br />-KBHS PTSA Meeting 1530<br />-KBHS Open House 1630<br />-BES Open House<br />-ECK PTO General Membership Meeting, Open House<br />-KES CSI Meeting 0800<br />First OAC Meeting, DSO, 1300');" onmouseout="tooltip.hide();">16</span></td>
                    <td><span class="hotspot" onmouseover="'-1/2 Day Early Release All Schools - Mandatory Annual Training<br />-KBHS Back to School Dance<br />-ECK New Parent Coffee 0900<br />--Football - VAR Zama v. KDHS, Zama (tentative)');" onmouseout="tooltip.hide();">17</span></td>
                    <td><span class="hotspot" onmouseover="'-Oki-Am Manga Contest<br />-Football - VAR KBHS v. SAHS at SAHS<br />-Kadena Special Olympics Bowling Event');" onmouseout="tooltip.hide();">18</span></td>
                    <td><span class="hotspot" onmouseover="'-Developmental Tennis, Risner, 1500 <br />-BHPS PTO Exec. Meeting 1515<br />-KSES SAC Meeting <br />-KES SAC meeting');" onmouseout="tooltip.hide();">20</span></td>
                    <td><span class="hotspot" onmouseover="'-KMS PTO Meeting 1630<br />-Fall Photos - BHPS, KDHS, KES<br />-SHES SAC Meeting<br />-Volleyball - JV KBHS v. KDHS, KBHS, 1700<br />-Volleyball - VAR KBHS v. KDHS, KBHS 1900<br />-Volleyball - Varsity Tennis @ Risner, 1500');" onmouseout="tooltip.hide();">21</span></td>
                    <td><span class="hotspot" onmouseover="'-KDHS Senior Portratis <br />-RMS SAC Meeting<br />-AEIS School Photos<br />-KDHS Senior Portraits<br />-BHPS SILT Meeting 0800<br />-ECK Open House/PTO Meeting<br />-ZES PTO Meeting 1800<br />-ZES Fall Photos <br />-Cross Country Meet - KDHS, 1545<br />-Football: KDHS @ KBHS location: Petty Field @ 1800 (6PM)');" onmouseout="tooltip.hide();">22</span></td>
                    <td><span class="hotspot" onmouseover="'-KDHS Fall Photos<br />-ECK SAC Meeting<br />-ZES Fall Photos');" onmouseout="tooltip.hide();">23</span></td>
                    <td><span class="hotspot" onmouseover="'-AEIS Parent Coffee<br />-ECK Parent Math Workshop 0930-1030<br />-Fall Photos - KSES <br />-Football - JV KBHS v. KDHS, RMS, 1630<br />-Volleyball - JV OCSI v. KDHS, OCSI, 1700<br />-Volleyball - VAR OCSI v. KDHS, OCSI, 1900');" onmouseout="tooltip.hide();">24</span></td>
                    <td><span class="hotspot" onmouseover="'-Volleyball - JV Developmental Day, KDHS, 0900-1100<br />-Football - OAHS v. KDHS, RMS, 1900<br />-Football - DAHS v. KBHS, Mike Petty Stadium, 1900<br />-BYE WEEK Location: ------------ Time: -----');" onmouseout="tooltip.hide();">25</span></td>
                    <td><span class="hotspot" onmouseover="'-Photos - BES, ECK, KES, KDHS, RMS, ZES <br />-BHPS SAC Meeting 1515 <br />-Developmental Tennis @KBHS, 1500');" onmouseout="tooltip.hide();">27</span></td>
                    <td><span class="hotspot" onmouseover="'-Photos - BES, ECK, KES, RMS, ZES<br />-AEIS SILT Meeting<br />-Volleyball JV KBHS v. OCSI, KBHS, 1700<br />-VAR KBHS v. OCSI, KBHS, 1830<br />-Varsity Tennis @ KBHS, 1500');" onmouseout="tooltip.hide();">28</span></td>
                    <td><span class="hotspot" onmouseover="'-Photos - KES, KDHS, KSES, KMS, RMS<br />-Cross Country Meet, hosted by KBHS, location: Futenma @ 1545 ');" onmouseout="tooltip.hide();">29</span></td>
                    <td><span class="hotspot" onmouseover="'-Photos - KMS, LMS, SHES<br />-Volleyball - JV KDHS v. KBHS, KDHS, 1700<br />-Volleyball - VAR KDHS v. KBHS, KDHS, 1830');" onmouseout="tooltip.hide();">30</span></td>
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 9 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 9 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros