Setting up the Epoch JavaScript Calendar 2.0 on your MachineEpoch is designed for easy setup on any type of computer or web server. Follow these 3 simple steps to integrate the power and flexiblity of Epoch into your page: 1. Get the FilesGetting Epoch is easy! You can download the Epoch installation package at the Epoch Download Page. If you plan to use Epoch commercially, you will need to purchase a license within 30 days of downloading the Epoch installation package. 2. Include the Files in Your PageOnce you've downloaded the Epoch installation package, you need to include them in your web pages. This is easy — just add a <script> and <link> tag that links to Epoch's JavaScript/CSS files. <head>
<title>My Epoch Test Page</title>
<!--The Epoch Styles-->
<link rel="stylesheet" type="text/css" href="[path_to_css]/epoch_styles.css"/>
<!--The Epoch JavaScript Code-->
<script type="text/javascript" src="[path_to_javascript]/epoch_classes.js"></script>
</head>
Don't forget to double-check the file paths in the href/src attributes! 3. Set up Epoch on Your PageIn this example, we set up a page containing 2 calendars – one is a standard popup/datepicker and the other is a flat/inline calendar. You can initialize Epoch just like any other object (i.e. var myArray = new Array();). For more detailed information on what values you can pass to Epoch on initialization, see the Epoch Class Reference – or see the code below for examples. In your page's <HEAD>
In Your Page's <BODY>
Working Example:Here is a working example made using the code from Step 3 Epoch Test:
|