Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / November 2005

Tip: Looking for answers? Try searching our database.

JSP countdown timer

Thread view: 
agold791@hotmail.com - 01 Nov 2005 19:01 GMT
I am interested in creating a web based countdown timer that could be
started, stopped, or reset on the server side.  Any ideas?
Andrew Thompson - 01 Nov 2005 19:26 GMT
> I am interested in creating a web based countdown timer that could be
> started, stopped, or reset on the server side.  Any ideas?

Ajax, Applet.
Roedy Green - 02 Nov 2005 01:03 GMT
>I am interested in creating a web based countdown timer that could be
>started, stopped, or reset on the server side.  Any ideas?

See http://mindprod.com/jgloss/timer.html

For arranging periodic screen updates.

See http://mindprod.com/time.html
for measuring elapsed time.

Keep uppermost in your mind that Timers make trigger any time AFTER
the desired time depending on how busy the system is.

If I were doing this I would use an Applet that managed the display
perhaps updating it several times a second.  The server would just
send messages on another thread to meddle with its default operation.

If you don't feel up to this, I could write you one to your specs for
a fee.

Signature

Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.

Roedy Green - 02 Nov 2005 03:41 GMT
On Wed, 02 Nov 2005 00:03:44 GMT, Roedy Green
<my_email_is_posted_on_my_website@munged.invalid> wrote, quoted or
indirectly quoted someone who said :

>See http://mindprod.com/time.html
>for measuring elapsed time.

Darn. Did it again

http://mindprod.com/jgloss/time.html
Signature

Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.

Jack - 03 Nov 2005 03:17 GMT
>See http://mindprod.com/jgloss/timer.html
>
>For arranging periodic screen updates.
>
>See http://mindprod.com/time.html
>for measuring elapsed time.

but he wants a countdown timer, which I'd reckon would best be inverse
logic to that of elapsed time: get currentTimeMillis, do the math to
the milliseconds of the target time (say, the end of an auction), and
report the difference on the web page. In that way, you're not
concerned about trigerring any event - you only have net latency to
gives any minor imperfections.

For start/stop/reset, maybe an applet that opens a socket to the
server for control, or else a manager servlet/jsp with an HTML form,
each being password protected.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.