Hey guys,
Read your latest comments and I tried to integrate Jorge's updatetime()
(html object id) box combo (Oct 8 at 19:22). It is clean, I like it. In my integration, updatetime()
get called every second but the code inside function(s) never gets executed.
Could it be because my html object is not valid? It is in the body and defined as <div id="box"><p>time</p></div>
.
Stephane
P.S.: My version of Jorge's updatetime function is
function updateTime()
{
var now = new Date();
$('#box span.start:not(:empty)').each(
function(s)
{
var start = $('#box').children('span.start').html();
$('box').children('span.time').html(formatMillis(now.getTime() - start));
}
);
window.setTimeout("updateTime()", 1000);
}