Xml Calendar – Add an Event Calendar to Your Website

0
11

Do you need an xml calendar? How about a calendar you can add to any page on your website to show your visitors your events?

The solution is the Scriptcalendar. It is a javascript calendar. It will load your xml event data and display it in a monthly calendar format on your website. You add the calendar to your your page with one easy HTML tag …

«! – Scriptcalendar iframe tag -» «iframe id =" scIFrame "name =" abc "src =" scthemes / standard / scrptcal.htm "scrolling =" no "frameborder =" 0 "width =" 800 "height = "700" »« / iframe »

The xml schema is simple to follow. There is a event editor included to help you create your events.

The scriptcalendar is javascript code, and nothing but javascript. You do not need server side scripting. It gets the events from the server using Ajax. An asynchronous call to the server loads the xml. The calendar parses the xml after the load has been completed. Your events are then display to your visitors

It is possible to generate the events from your database. Construct a page that will read from the database and render the xml. Use this page as the xml event file in the scriptcalendar. It will asynchronously get the dynamically rendered xml. You avoid concurrent user issues in a multiple user environment by dynamically rendering the xml instead of generating a file on the server.

This is an sample of the xml used by the scriptcalendar

«Events» «event» «month» 7 «/ month» «day» 23 «/ day» «year» 2009 «/ year» «text» My Birthday «/ text» «style» scEventRed «/ style» «/ event »« event »« month »7« / month »« day »30« / day »« year »2009« / year »« text »End of the month get together« / text »« style »scEventBlue« / style »« / event »« / events »

Source

Leave a Reply