Hi,

I've tried installing the countdown timer but keep getting an error displayed as the output:

(undefined undefined1)
NaN days + 0NaN:0NaN:0NaN

I have it set to appear on all pages and full html filter. The source of the page confirms the examples are as you have them in the docs ...

Any ideas what is going wrong?

Comments

jvandervort’s picture

Usually the NAN errors happen when the format is a little off and it can't figure out the datetime.
Is your site public, and can you post the <span tags?

aalexei’s picture

Hi, the span tags were copied from the docs:

 <p><span class="countdowntimer">Not too many days left until Feb 17! (this shows until timer initializes or for non-js folks)<br />
 <span style="display:none" class="datetime">2010-02-17T09:30:00-08:00</span><br />
</span></p>
<p>Example 2<br />
<span class="countdowntimer">Wow, a lot of time has passed since the conference. (this shows until timer initializes or for non-js folks)<br />
 <span style="display:none" class="datetime">2007-02-26T09:30:00-08:00</span><br />

 <span style="display:none" class="dir">up</span><br />
</span></p>
<p><span class="countdowntimer"><br />
</span></p>
<p> <span style="display:none" class="datetime">2007-02-26T09:30:00-08:00</span> </p>

The site is public but I don't want to leave the block displayed for too long as the site is live. Hmm, lets see, I'll create a separate page with the clock ... OK try http://quest.quantumscience.info/node/50

jvandervort’s picture

Ahh, the 5.x version uses this format:

<span class="countdowntimer">Count Down, this shows until timer initializes or for non-js folks
 <span style="display:none" name="datetime">2009-02-26T09:30:00</span> 
 <span style="display:none" name="tz_hours">-8</span>
</span>

(The timezone is separate, the the spans use "name=" instead of class.)

In the readme.txt file that is included in the 5.x download it should be correct.
The docs on drupal.org are for the 6.x (latest and greatest).

aalexei’s picture

woohoo!,

thank you, all works now.

aalexei’s picture

Status: Active » Closed (fixed)