JavaScript event integration allows you to place a single line of JavaScript into any Web page on any site, and automatically have the events from any section of any nTreePoint Events site be dynamically inserted into the page.

Here is an example:

<script language="JavaScript" src="http://www.mysite.com/Feeds/eventsFeed.asp?typ=1&sec=1140&cou=15&ind=1&int=1&ins=1&ine=1&ini=1"></script>

The following table describes each variable to include in the URL when adding the script to one of your pages:

Name Key Description
Type typ If this value is not provided, the script assumes you are requesting JavaScript integration. A value of "1" can also be used to specify JavaScript integration.
Event eve If this value is not provided, the script assumes you are requesting a list of upcoming events. If the value is "2", you are requesting a list of events within a specific date range, in which case you will need to provide a start and end date.
Start Date sta The start date of the date range. This is only required if the Event (eve) is "2".
End Date end The end date of the date range. This is only required if the Event (eve) is "2".
Section ID sec The id of the section from which the events are being extracted. If you are browsing events through the nTreePoint interface, the section ID is the number after "sec=" on the querystring.
Count cou The number of events to display.
Include Date ind If this value is set to "1", the date will be displayed for each event.
Include Time int If this value is set to "1", the time (if applicable) will be displayed for each event.
Include End Time ine If this value is set to "1", the end time (if applicable) will be displayed for each event.
Include Summary ins If this value is set to "1", the summary will be displayed for the event. If there is a body for the event but no summary, the first part of the body will become the summary.
Include Summary Image ini If this value is set to "1", then if there is a summary image for the event, it will be displayed.
Summary Image HSPACE hsp The horizontal spacing for the summary image; the default is 5.
Summary Image VSPACE vsp The vertical spacing for the summary image; the default is 0.
Summary Image Align ali The alignment of the summary image; the choices are LEFT or RIGHT. The default is LEFT.
For the next six items, you can use either a class from a stylesheet that is included in the page in which the events are being integrated, or you can define specific styles for each item. It is recommended that you use either one or the other, but not both.
Title Class tcl The class used for the event title.
Title Style tst The style used for the event title. Default:

font-family: verdana,arial,helvetica; font-size: 10px; font-weight: bold; color: #000000;
Summary Class scl The class used for the event summary.
Summary Style sst The style used for the event summary. Default:

font-family: verdana,arial,helvetica; font-size: 10px; font-weight: bold; color: #000000;
Date Class dcl The class used for the event date.
Date Style dst The style used for the event date. Default:

font-family: verdana,arial,helvetica; font-size: 10px; font-weight: bold; color: #000000;