CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.

YesSoftware Forums -> CodeCharge Studio -> Java

 Java Timer Not Work

Print topic Send  topic

Author Message

Posts: 640
Posted: 10/15/2012, 2:14 AM

I have the following script working on a form that form is not in edit mode...

<script language="JavaScript">
var start=new Date();
var counts=100;
function countDown(){
var now=new Date();
var x=parseInt(counts-(now-start),10);
if(document.recordWorkorder){document.recordWorkorder.recipient.value = x;}
timerID=setTimeout("countDown()", 100)

Problem is that When I add the script to the onclick (client side) of a button on a form in editmode, this same script does not work. I have also tried placing the script in the forms onload client side to test and it doesnt work there either.
Central Coast, NSW, Australia.

View profile  Send private message
Posted: 10/15/2012, 6:21 AM

Debugging client-side javascript is very easy nowadays with the built-in
browser developer tools. Learn them and use them often. They'll tell
you exactly where your issues are.

Ex: In Chrome, load your page, then hit Ctrl-Shift-I. If there are
javascript errors it'll tell you exactly where and why.

Add new topic Subscribe to topic   

These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.

Home   |    Search   |    Members   |    Register   |    Login

Powered by UltraApps Forum created with CodeCharge Studio
Copyright 2003-2004 by  and YesSoftware, Inc.