Calendar

This script displays a perpetual javascript calendar, you can include ajax calls to update the days links

Examples of use

Download it

The code

  1.  
  2. /*
  3. AJAX Calendar
  4. By Rene Lopez Caballero  <http://www.mywebexperiences.com/javascript/calendar/>
  5. Copyright (c) 2008 Rene Lopez Caballero
  6. Licensed under the MIT License: http://www.opensource.org/licenses/mit-license.php
  7. */‘January’,‘February’,‘March’,‘April’,‘May’,‘June’,‘July’,‘August’,‘September’,‘October’,‘November’,‘December’‘S’,‘M’,‘T’,‘W’,‘T’,‘F’,‘S’"<table id=’""’>";
  8.                 htmlCal += "<caption>"
  9.                 htmlCal += "<a href=\"javascript:window.rlc_calendars[‘""’].update("+(previousMonth+1)+","+previousYear+")\">< </a>"" ""<a href=\"javascript:window.rlc_calendars[‘""’].update("+(nextMonth+1)+","+nextYear+")\"> ></a>";
  10.                 htmlCal += "</caption><thead><tr>""<th>""</th>";
  11.                 htmlCal+="</tr></thead>";
  12.                 htmlCal+="<tbody>""<tr>""<td> </td>""<tr>""<a href=’""’>" + i + "<a>""<td id=’today’>"+htmlDia+"</td>""<td>"+htmlDia+"</td>""</tr>""<td> </td>";
  13.                         htmlCal+="</tr>";
  14.                 }
  15.                 htmlCal+="</tbody></table>""<div>""</div>"‘0’‘Microsoft.XMLHTTP’‘get’

Leave a Reply

Your email address will not be published. Required fields are marked *