Hello,

I try to implement a simple digital clock in 1C, and the only method I've found in doing this is by using idle handler.

Example.

Code
&AtClient
Procedure OnOpen(Cancel)
   AttachIdleHandler("UpdateLocalCurrentDateTime", 1);
EndProcedure

&AtClient
Procedure UpdateLocalCurrentDateTime()
   CurrentDateTime = Format(CurrentDate(), "DF='MMM dd, yyyy, HH:mm:ss'");
EndProcedure

This approach works well in the thin/thick client, but in the web-client I have some issues (tested on several browsers), one of them being that, no matter on what form I am, the focus is stolen on every new update call.

Can anyone suggest other methods of displaying a digital clock in the interface?