Hexagora Forum
Hexagora Forum
Home | Profile | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Dynamic HTML Editor
 Dynamic HTML Editor
 Unable to get Epoch calendar to work
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

rmmarsh
Super User

USA
396 Posts

Posted - 18 May 2010 :  21:30:51  Show Profile  Visit rmmarsh's Homepage  Reply with Quote
I am trying to add the Epoch calendar (http://www.javascriptkit.com/script/script2/epoch/index.shtml) to a page, using the code below, and it's now working. I have a HTML object which contains one line of code
(<div id="calendar1_container"></div>)
and the following code in my Header Code:

<script type="text/javascript"> var calendar1; /*must be declared in global scope*/ /*put the calendar initializations in the window's onload() method*/ 
window.onload = function() { calendar1 = new Epoch('cal1','flat',document.getElementById('calendar1_container'),false); }; </script>


I tried putting the following code in the OnLoad Event, but that didn't help either.

function() { calendar1 = new Epoch('cal1','flat',document.getElementById('calendar1_container'),false);


Can someone please point me in the right direction? (I would really, really appreciate it!)

rmmarsh
Super User

USA
396 Posts

Posted - 20 May 2010 :  19:36:07  Show Profile  Visit rmmarsh's Homepage  Reply with Quote
Davide: can you help me on this one?
Go to Top of Page

joneq
Super User

433 Posts

Posted - 20 May 2010 :  22:10:09  Show Profile  Visit joneq's Homepage  Reply with Quote
I think David has been away--maybe back now

http://www.hexagora.com/en_reg_step1.asp
Go to Top of Page

rmmarsh
Super User

USA
396 Posts

Posted - 21 May 2010 :  01:32:26  Show Profile  Visit rmmarsh's Homepage  Reply with Quote
Thanks for the info...
Go to Top of Page

s.dav
Site Admin

Italy
3364 Posts

Posted - 21 May 2010 :  14:27:44  Show Profile  Visit s.dav's Homepage  Reply with Quote
rmm,
have you tried the "Calendar" extension? Don't you like it? ;-)

Regards, Davide
Go to Top of Page

s.dav
Site Admin

Italy
3364 Posts

Posted - 21 May 2010 :  14:32:42  Show Profile  Visit s.dav's Homepage  Reply with Quote
You need to:
1- copy these files into your site; maybe you can use a subfolder

epoch_styles.css
epoch_classes.js

2- link these files from your page by pasting this code into the header tag

<link rel="stylesheet" type="text/css" href="epoch_styles.css" />
<script type="text/javascript" src="epoch_classes.js"></script>

3- create a div element by using an HTML box or a DIV extension

<div id="basic_container"></div>

4- paste this code into a <script> section into your header

<script type="text/javascript">
window.onload = function () {
bas_cal = new Epoch('epoch_basic','flat',document.getElementById('basic_container'));
};
</script>


Regards, Davide
Go to Top of Page

rmmarsh
Super User

USA
396 Posts

Posted - 21 May 2010 :  16:33:20  Show Profile  Visit rmmarsh's Homepage  Reply with Quote
Thank you, Davide... works like a champ!
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Hexagora Forum © s.dav Go To Top Of Page
Snitz Forums 2000