I created a block using example 4 of the readme.txt. The following is copied from the block (i only changed the date):

<span class="countdowntimer">Count Down

 <span style="display:none" class="datetime">2009-02-26T09:30:00-05:00</span>
 
 <span style="display:none" class="dir">down</span>

 <span style="display:none" class="format_txt"><em>(%dow% %moy%%day%)</em><br>%days% days + %hours%:%mins%:%secs%</span>

 <span style="display:none" class="threshold">4</span>

 <span style="display:none" class="complete">Custom Timer Complete Statement</span>

</span>

After saving the block I get the error

CountdownTimer: Span with class=datetime not found within the timer span.

and after that an error window with


<em>Count Down<br>
 <span style="display: none;" class="datetime">2009-10-26T09:30:00-05:00</span><br>
 <span style="display: none;" class="dir">down</span><br>
 <span style="display: none;" class="format_txt"><em>(%dow% %moy%%day%)</em><br>%days% Tage + %hours%:%mins%:%secs%</span><br>
 <span style="display: none;" class="threshold">4</span><br>
 <span style="display: none;" class="complete">Custom Timer Complete Statement</span><br>
</em>

Comments

jvandervort’s picture

Status: Active » Postponed (maintainer needs more info)

I had the same problem with your code. I then removed the extra line breaks, and it worked.
I wonder what the parser is doing with newlines and/or spaces.

Try removing all of the extra line breaks.

FrankT’s picture

There are some things I need to says first (sorry for inconvenience): the timer itself works. I also added the line breaks for layout pruposes. For creating the block I strictly cut and past the expample from the readme.

So this issue is about an error that appears but that might not be one!?

jvandervort’s picture

Status: Postponed (maintainer needs more info) » Fixed
Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

flyingL123’s picture

Status: Closed (fixed) » Active

I'm having the same problem. I am literally just copying the code straight from the Readme file. I am copying and pasting this code into a block:

<span class="countdowntimer">Count Down
 <span style="display:none" class="datetime">2009-02-26T09:30:00-05:00</span> 
 <span style="display:none" class="dir">down</span>
 <span style="display:none" class="format_txt"><em>(%dow% %moy%%day%)</em><br>%days% days + %hours%:%mins%:%secs%</span>
 <span style="display:none" class="threshold">4</span>
 <span style="display:none" class="complete">Custom Timer Complete Statement</span>
</span>

It's example 4 from readme. I am getting the same error message mentioned above in Mozilla FF, and Safari, however, the countdown timer works fine in IE. Do you have any idea how we can get it working in FF? I should also mention that it was at one point working in FF, but it seems to randomly not work and give that error. However, at this point, it hasn't been working in FF for a few days. Any clue?

I also have separate question that is pretty straight forward...in the "datetime" line of code, what does 09:30:00-05:00 represent? Is that telling the timer to only countdown the time between 9:30 am and 5:00 am? I'm having trouble figuring that out. I know, stupid question, but I'm knew at this.

Thanks for any help you can provide!

jvandervort’s picture

Please start a new issue, you are sending the thread update emails to the original issue author.

I just copied your example above into my test site, and it works fine in firefox. Gotta hate
intermittent failures.

Are you using the full html input format? Which drupal version are you using? Any other javascript?
What are you admin settings for the counter?

jvandervort’s picture

Status: Active » Closed (fixed)