Event Spring
Home Calendars Search Subscribe Add Event Login Sign Up

How to Display Events in Your Website

Displaying events from EventSpring.com in your website is simple. Just paste the HTML content below into your web page at the point where you want events displayed.

Displaying a Detailed View of All Events for Today
To see how this appears, have a look at the live event details demo.

Displaying Events for This Month In Calendar Format
You can also display events in your website in a calendar format as discussed below and shown in the live event calendar demo.

In the section of HTML code labeled "<!-- What Events to Retrieve -->" in each of the display options discussed previously there are several parameters discussed below that you can use to specify exactly what events to show. To include a given parameter you need to include it as a name / value pair in the URL request to GetJSONEvents.aspx in each display option as shown below.

<!-- What Events to Retrieve -->
<script language="JavaScript1.2" src="http://www.EventSpring.com/GetJSONEvents.aspx?
callback=updateEventViews&ParameterName=ParameterValue"></script>

Where you can replace ParameterName with the real name of the parameter, and ParameterValue with a valid value for the named parameter. You can include several parameter name / value pairs in one URL, but remember to separate each pair with &. The various parameters and associated values you can use for each one are discussed below.

Displaying Only Your Events
This option is useful to give you absolute control over exactly what events to display in your website. When you add an event to your events a copy of that event is made to freeze it at the time you added it to your events. This ensures that the event appears in your website exactly the way it did when you added it to your events. If on the other hand you want to capture updates to an event that you earlier added to your events simply remove it from your events as shown below and then re-add it to your events to get the updates.
To display only your events set the UserID parameter in the GetJSONEvents.aspx URL to your user ID as shown below.
      UserID=[Login to see your UserID]
You can easily add an event to your events. Just login, find the event and check the checkbox "Add To My Events". Otherwise if you want to remove an event from your events just uncheck the checkbox.

Specifying the Time Period For Events to Display
You can easily specify the time period to show events for using several parameters below.
Name Value Description
When Today Default. Shows only events for the current day.
Tomorrow Shows only events for tomorrow.
This Weekend If the current day is Saturday or Sunday this will select events for the current weekend. If the current day is during the week this option will select events for the coming weekend. Selects events for both Saturday and Sunday.
This Week Selects events from Monday through Sunday.
Other Enables you to specify a custom time period from which to select events. If you use this value for the When parameter you must also specify all of the following parameters.
FromYear 2006 Required only with When=Other. Default 2006. Part of the from date / time of the period for which events will be selected.
FromMonth 1 through 12 Required only with When=Other. Default 1. 1=January through 12=December. Part of the from date / time of the period for which events will be selected.
FromDay 1 through 31 Required only with When=Other. Default 1. This is the day of the month. Part of the from date / time of the period for which events will be selected.
FromHour 1 through 12 Required only with When=Other. Default 1. This is the hour of the day. Part of the from date / time of the period for which events will be selected.
FromMinute 0 through 59 Required only with When=Other. Default 0. This is the minute of the hour. Part of the from date / time of the period for which events will be selected.
FromAmPm AM or PM Required only with When=Other. Default AM. Used to specify AM or PM time. Part of the from date / time of the period for which events will be selected.
ToYear 2006 Required only with When=Other. Default 2006. Part of the to date / time of the period for which events will be selected.
ToMonth 1 through 12 Required only with When=Other. Default 1. 1=January through 12=December. Part of the to date / time of the period for which events will be selected.
ToDay 1 through 31 Required only with When=Other. Default 1. This is the day of the month. Part of the to date / time of the period for which events will be selected.
ToHour 1 through 12 Required only with When=Other. Default 1. This is the hour of the day. Part of the to date / time of the period for which events will be selected.
ToMinute 0 through 59 Required only with When=Other. Default 0. This is the minute of the hour. Part of the to date / time of the period for which events will be selected.
ToAmPm AM or PM Required only with When=Other. Default AM. Used to specify AM or PM time. Part of the to date / time of the period for which events will be selected.

Displaying Events in Other Formats
Contact us for help with displaying events in other custom formats.

Copyright© 2005-2007 OmniPresent Systems, Inc. All Rights Reserved. Terms of Use