views:

103

answers:

4

i would like to make a site that is like this one:

http://www.online-stopwatch.com/

i know a vb.net and little bit of everything else and am wondering what is the best platform to use to make this and how i can start to make this stopwatch?

+1  A: 

I would recommend that you do it in Flash. Would probably be much more accurate than doing it within the browser with javascript.

ChrisDiRulli
what about asp.net?
I__
I'm curious as to why you'd say that? What makes Flash more accurate?
Mike Sherov
asp.net is related more to server side programming. Things like Javascript, Jquery, flash etc... are more suited for this type of app (client-side)
keyboardP
Here ya go: http://ejohn.org/blog/accuracy-of-javascript-time/With JS you are at the mercy of the browser's somewhat unreliable timing capabilities. Flash would at least be a bit more consistent
ChrisDiRulli
Interesting. Insightful link you posted there. Though I suppose if you need accuracy within 15ms, you're not going to be using an internet stopwatch to measure it!
Mike Sherov
@Mike Sherov - Flash is backed by an ActiveX control. ActiveX controls have access to operating system level calls which mean they could call Win32 API timer functions for example. Javascript, an interpreted language, has higher overhead than a compiled ActiveX control. (Whether or not Flash calls Win32 API functions, I don't know, but it is a viable option.) http://www.vbworkshop.com/Chapters/ch10g.htm
Good point Mike! :)Though Roy, wouldn't the browser also have access to the Win32 API? I agree though, much more overhead associated with JS interpretation.
ChrisDiRulli
@ChrisDiRulli - Yes, the browser would also have access to the API however, Flash is compiled into byte code where-as Javascript is interpreted on the fly (as you suggest more overhead with JS interpretation).
+1  A: 

They are using adobe Flash. So you could use that.

VB.NET and ASP.NET won't really help you as this is all would have to be done client-side.

Daniel A. White
+2  A: 

I'd use javascript. There is nothing here that is so fancy that it can't be done completely on the client side.

Mike Sherov
mishka, what about second part of q?
I__
what about it? Do you have any experience programming? If not, I would first pick up a book or read some online javascript tutorials. I'm not sure what else to tell you other than you start at the beginning :-)
Mike Sherov
+1  A: 

The link posted was coded using Flash.

The reason it works well, is that it does not have to postback to the server. All of the work is done client-side.

Something similar could be done using Javascript and HTML as that is a client-side technology.

ASP.NET is a server-side technology. It may be possible to use an ASP.NET AJAX Asynchronous timer to accomplish something similiar, however, due to the fact that it would have to postback to the server, it certainly would not be as smooth as the client-side technologies.