Closed (fixed)
Project:
Javascript Countdown Timer
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
9 Oct 2008 at 16:46 UTC
Updated:
14 Sep 2009 at 22:31 UTC
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
Comment #1
jvandervort commentedI 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.
Comment #2
FrankT commentedThere 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!?
Comment #3
jvandervort commentedComment #4
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #5
flyingL123 commentedI'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:
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!
Comment #6
jvandervort commentedPlease 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?
Comment #7
jvandervort commented