Hello!
Well, this is though one...
I have to display the progress of a javascript timer on a label on my vb.net program. Im really lost on this one.
Heres the javascript timer code:
Code:function update_timer() { now = new Date(); pause_time = ( stop_time - now.getTime() ) / 1000; if ( pause_time > 0 ) { timer_id = setTimeout( 'update_timer()', 1000 ); document.getElementById( 'pause_countdown' ).innerHTML = Math.ceil( pause_time ).toFixed( 0 ); } else { document.getElementById( 'pause_info' ).innerHTML = 'Process Complete'; } } pause_time = 20 * 1000; now = new Date(); stop_time = now.getTime() + pause_time;Code:<span id="pause_info" style="font-size:12px;font-weight:bold;"><span id="pause_countdown">20</span> For Complete </span>Well i dont know javascript, but it looks very similar to what vb.net is...Code:<script type="text/javascript" language="javascript"> <!-- timer_id = setTimeout( 'update_timer()', 1000 ); // --> </script>
The problem is how i get the current value of the timer?
Thanks in advance,
JCC


Reply With Quote