Author |
Message |
16/06/2008 09:59:06
|
schmuck
Power User
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
|
|
|
16/06/2008 10:06:50
|
CaptainCasa
Power User
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 |
|
|
16/06/2008 10:16:30
|
schmuck
Power User
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
|
|
|
16/06/2008 20:09:14
|
CaptainCasa
Power User
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 |
|
|
|