Hexagora Forum
Hexagora Forum
Home | Profile | Active Topics | Members | Search | FAQ
 All Forums
 Dynamic HTML Editor
 Dynamic HTML Editor
 Unable to get Epoch calendar to work

Note: You must be registered in order to post a reply.

Screensize:
UserName:
Password:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert Email Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
   

T O P I C    R E V I E W
rmmarsh Posted - 18 May 2010 : 21:30:51
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!)
6   L A T E S T    R E P L I E S    (Newest First)
rmmarsh Posted - 21 May 2010 : 16:33:20
Thank you, Davide... works like a champ!
s.dav Posted - 21 May 2010 : 14:32:42
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>

s.dav Posted - 21 May 2010 : 14:27:44
rmm,
have you tried the "Calendar" extension? Don't you like it? ;-)
rmmarsh Posted - 21 May 2010 : 01:32:26
Thanks for the info...
joneq Posted - 20 May 2010 : 22:10:09
I think David has been away--maybe back now

http://www.hexagora.com/en_reg_step1.asp
rmmarsh Posted - 20 May 2010 : 19:36:07
Davide: can you help me on this one?

Hexagora Forum © s.dav Go To Top Of Page
Snitz Forums 2000