I have tried some of your example codes in stories and blocks, but neither will work. Other javascript experiments (like a simple "hello" script) worked fine.

Comments

jvandervort’s picture

Is clean url's set to on or off?
What is the javascript load setting on the admin page?
Do you see the script tag for timerjs when you view source?

jvandervort’s picture

Status: Active » Postponed (maintainer needs more info)
LynnS’s picture

Component: Miscellaneous » Code

I cannot get the timer to show up, either. Using module 1.8.2.22.2.4.2.15, javascript load to every page, clean URLs on, script tag for timerjs showing up in source.

Error msg:
this.to_date has no properties
[Break on this error] this.outformat = this.outformat.replace(/%day%/, this.to_date.getDate())...

at line 30. My javascript-fu is weak, I fear.

I'm sure it's something I've done wrong, and I hope you can perhaps steer me right.

jvandervort’s picture

Hard to say, but I'd first check your span tag date format, and second I'd check the output format specs.
Can you post the full <span></span> info, and look to see if your format spec has any newlines or quotes in it?

LynnS’s picture

Thank you for the very quick reply, I was not expecting it. :) Here is the entire span info:

<span class="js-clock"></span>
<span class="countdowntimer">by 5/23/08  for 5/24/08 chapter</span>
<span style="display:none" class="datetime">2008-05-23T07:00:00-07:00</span> 

That's from the rendered page. This is in a block, and I have it set to render on every page. Thanks again.

ETA: I think I already see my error, hang on...

FETA: Yep, saw it. Didn't have the spans nested correctly. Thanks for your time!

jvandervort’s picture

Make sure your outer span tag encloses the time data:

Instead of this:

<span class="countdowntimer">by 5/23/08  for 5/24/08 chapter</span>
<span style="display:none" class="datetime">2008-05-23T07:00:00-07:00</span>

Try this:

<span class="countdowntimer">by 5/23/08  for 5/24/08 chapter
     <span style="display:none" class="datetime">2008-05-23T07:00:00-07:00</span>
</span>

This second bit works on the demo site, so if it doesn't work for you, we can look at the admin settings and the js inclusion stuff.

jvandervort’s picture

Try the latest 6.x-2.18 version when you get a chance. I added some more error handling so it might give you more info on bad dates and missing dates.

jvandervort’s picture

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

Status: Fixed » Closed (fixed)

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