ScoobyLive Ticker - Issue with Safari
#1
Scooby Regular
Thread Starter
Join Date: Mar 1999
Location: The Great White North
Posts: 25,080
Likes: 0
Received 0 Likes
on
0 Posts
ScoobyLive Ticker - Issue with Safari
The ticker on the ScoobyLive banner is showing the following:
daysNaN hrsNaN minsNaN secsNaN
instead of the countdown until 9am on Sunday 27th May.
Firefox on Mac does not seem to have an issue, so yet again it's safari being picky.
I've saved a copy of the page and will try and work out what is wrong, but by JS skills are a tiny bit rusty
daysNaN hrsNaN minsNaN secsNaN
instead of the countdown until 9am on Sunday 27th May.
Firefox on Mac does not seem to have an issue, so yet again it's safari being picky.
I've saved a copy of the page and will try and work out what is wrong, but by JS skills are a tiny bit rusty
#2
Scooby Regular
Thread Starter
Join Date: Mar 1999
Location: The Great White North
Posts: 25,080
Likes: 0
Received 0 Likes
on
0 Posts
After some advise from my friend Jim (Thanks buddy ) I put the ticker into debug mode and we found the issue. It is will the following line:
The problem is the comma after the year, if you remove the comman then the debug routine does not have an issue, and when debug mode Safari displays the correct countdown time.
The clue was in the debug message itself as it lists the current local (GMT) time, and the value it listed showed the correct layout, ie; no trailing comma after the year.
Code:
create_counter(document.getElementById('my_counter'), 'May 27, 2007, 9:00:00');
The clue was in the debug message itself as it lists the current local (GMT) time, and the value it listed showed the correct layout, ie; no trailing comma after the year.
Thread
Thread Starter
Forum
Replies
Last Post
Phil3822
General Technical
0
30 September 2015 06:29 PM