Closed (fixed)
Project:
Javascript Countdown Timer
Version:
6.x-2.4
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
26 Feb 2008 at 02:18 UTC
Updated:
4 Jun 2008 at 17:24 UTC
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
Comment #1
jvandervort commentedIs 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?
Comment #2
jvandervort commentedComment #3
LynnS commentedI 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.
Comment #4
jvandervort commentedHard 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?Comment #5
LynnS commentedThank you for the very quick reply, I was not expecting it. :) Here is the entire span info:
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!
Comment #6
jvandervort commentedMake sure your outer span tag encloses the time data:
Instead of this:
Try this:
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.
Comment #7
jvandervort commentedTry 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.
Comment #8
jvandervort commentedComment #9
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.