[Logo] Enterprise Client Community
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
How to create a Client Side clock  XML
Forum Index -> Development
Author Message
schmuck

Power User
[Avatar]

Joined: 08/04/2008 16:27:16
Messages: 83
Offline

Hello,

how can I create a client side clock? (only text, but HH:mm:ss format)

Is there any client component or must I call every second a bean property that returns a time string ?


Calling every second would cause a very high load on the network


Thanks,
Michael Schmuck
[ICQ]
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5519
Offline

Hi Michael,

yes, a component like this is required - we'll add it short term.

You are 100% right about going to the server each second does not sound 100% healthy...

Björn

Björn Müller, CaptainCasa GmbH
schmuck

Power User
[Avatar]

Joined: 08/04/2008 16:27:16
Messages: 83
Offline

Hello,

maybe you could create something like an stopwatch.

As an property an initial date object, then a switch for inc. or dec. an given amount milliseconds at an given time period.

e.g. properties

new Date() // Initial
1000 // add 1000 ms
1000 // after eatch second

so we can realise an simple clock but also an countdown or something else




[ICQ]
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5519
Offline

Next update (tomorrow) will contain a CLOCK component - with which the current date or time can be output in diverse formats.

Not yet a stop watch, this will be a component on its own.

Björn

Björn Müller, CaptainCasa GmbH
 
Forum Index -> Development
Go to:   
Powered by JForum 2.1.6 © JForum Team