| Issue 10: | Using 2 countdown timer on IE6 and 7 not working with script error but it works in Firefox | |
| 1 person starred this issue and may be notified of changes. | Back to list |
What steps will reproduce the problem?
1. I include 2 instance of the countdown timer in my page.
2. When the countdown ends in the first instance first, the second instance
just stops counting and i got a js error. If the second instance stop
first, the countdown will still work on the first one.
What is the expected output? What do you see instead?
When i use the script debugger on visual studio to debug the error, it is
failing in (this.data("epiClock").render()) of the following line:
case EC_RUN:if(!a){b();a=setInterval(b,h)}e=j;break}return this};function
b(){c.each(d,function(h){this.data("epiClock").render()})}
What version of the product are you using? On what operating system?
version 2.1.2 on IE6
Please provide any additional information below.
Here is my code for testing :
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=encoding">
<title>Test Countdown Clock</title>
<script type="text/javascript" src="script/jquery-1.3.2.min.js"></script>
<script type="text/javascript" src="script/jquery.epiclock.min.js">
</script>
<script type="text/javascript">
// Once the dom loads...
jQuery(function(){
var start_dt = document.getElementById("dt").value;
var start_dt2 = document.getElementById("dt2").value;
jQuery('#clock')
.epiclock({mode: EC_COUNTDOWN, target: start_dt, onTimer:
function(){
changeText('clock', 'The sales is here!');}
});
jQuery('#clock2')
.epiclock({mode: EC_COUNTDOWN, target: start_dt2, onTimer:
function(){
changeText('clock2', 'The sales is here!');}
});
});
jQuery.epiclock(EC_RUN);
function changeText(elid, eltxt)
{
document.getElementById(elid).innerHTML = eltxt;
}
function showHid()
{
alert(document.getElementById("dt").value);
}
</script>
</head>
<body>
<?php
$time_now = 'November 2, 2009 2:24:0';
$time_now2 = 'November 2, 2009 2:29:60';
?>
<span id="clock" name="clock"></span>
<br/>
<span id="clock2" name="clock2"></span><br/>
<input id="dt" name="dt" type="hidden" value="<?php echo($time_now); ?>" />
<input id="dt2" name="dt2" type="hidden" value="<?php echo($time_now2);
?>" />
</body>
</html>
Dec 10, 2009
Project Member
#1
gars...@gmail.com
May 24, 2010
Should be fixed by the new release.
Status:
WontFix
|