Javascript Analog Clock with moveable hands

View: New views
8 Messages — Rating Filter:   Alert me  

Javascript Analog Clock with moveable hands

by Fabian Dittrich :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Folks,
 
is there something around like a Javascript Analog Clock with moveable hands?
Maybe even as a dojo widget?
 
Greetings from Germany
 
Fabian

_______________________________________________
Dojo-interest mailing list
Dojo-interest@...
http://dojotoolkit.org/mailman/listinfo/dojo-interest

Re: Javascript Analog Clock with moveable hands

by Bob Ippolito :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Dec 29, 2005, at 3:56 PM, Fabian Dittrich wrote:

> is there something around like a Javascript Analog Clock with  
> moveable hands?
> Maybe even as a dojo widget?

It would be painful to do this because you can't draw anything but  
horizontal and vertical lines cross-browser, nor can you rotate  
images.  Firefox 1.5 and Safari 1.3 have the Canvas tag, and there's  
probably some ActiveX way to do it in IE.. or there's Flash, which  
would probably work everywhere you care about.

Alternatively, I guess you could make a whole bunch of images...

-bob

_______________________________________________
Dojo-interest mailing list
Dojo-interest@...
http://dojotoolkit.org/mailman/listinfo/dojo-interest

Re: Javascript Analog Clock with moveable hands

by Dimitri Glazkov :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Speaking of canvas, Emil "Mission Impossible" Eklund is at it again:

http://me.eae.net/archive/2005/12/29/canvas-in-ie/

:DG<

On 12/29/05, Bob Ippolito <bob@...> wrote:

> On Dec 29, 2005, at 3:56 PM, Fabian Dittrich wrote:
>
> > is there something around like a Javascript Analog Clock with
> > moveable hands?
> > Maybe even as a dojo widget?
>
> It would be painful to do this because you can't draw anything but
> horizontal and vertical lines cross-browser, nor can you rotate
> images.  Firefox 1.5 and Safari 1.3 have the Canvas tag, and there's
> probably some ActiveX way to do it in IE.. or there's Flash, which
> would probably work everywhere you care about.
>
> Alternatively, I guess you could make a whole bunch of images...
>
> -bob
>
> _______________________________________________
> Dojo-interest mailing list
> Dojo-interest@...
> http://dojotoolkit.org/mailman/listinfo/dojo-interest
>
_______________________________________________
Dojo-interest mailing list
Dojo-interest@...
http://dojotoolkit.org/mailman/listinfo/dojo-interest

Re: Javascript Analog Clock with moveable hands

by Alex Russell :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Oof. I'm really not sure that <canvas> is something we should be
emulating...SVG Tiny + DOM bindings OTOH...

On Thursday 29 December 2005 2:01 pm, Dimitri Glazkov wrote:

> Speaking of canvas, Emil "Mission Impossible" Eklund is at it again:
>
> http://me.eae.net/archive/2005/12/29/canvas-in-ie/
>
> :DG<
>
> On 12/29/05, Bob Ippolito <bob@...> wrote:
> > On Dec 29, 2005, at 3:56 PM, Fabian Dittrich wrote:
> > > is there something around like a Javascript Analog Clock with
> > > moveable hands?
> > > Maybe even as a dojo widget?
> >
> > It would be painful to do this because you can't draw anything but
> > horizontal and vertical lines cross-browser, nor can you rotate
> > images.  Firefox 1.5 and Safari 1.3 have the Canvas tag, and
> > there's probably some ActiveX way to do it in IE.. or there's
> > Flash, which would probably work everywhere you care about.
> >
> > Alternatively, I guess you could make a whole bunch of images...
> >
> > -bob
> >
> > _______________________________________________
> > Dojo-interest mailing list
> > Dojo-interest@...
> > http://dojotoolkit.org/mailman/listinfo/dojo-interest
>
> _______________________________________________
> Dojo-interest mailing list
> Dojo-interest@...
> http://dojotoolkit.org/mailman/listinfo/dojo-interest

--
Alex Russell
alex@... BE03 E88D EABB 2116 CC49 8259 CF78 E242 59C3 9723
alex@...  F687 1964 1EF6 453E 9BD0 5148 A15D 1D43 AB92 9A46
_______________________________________________
Dojo-interest mailing list
Dojo-interest@...
http://dojotoolkit.org/mailman/listinfo/dojo-interest

Re: Javascript Analog Clock with moveable hands

by Dylan Schiemann :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I've been thinking of making the TimePicker widget I contributed do
something like this for environments that support SVG, but inertia has
prevented much action on my part.

Fabian Dittrich wrote:
> Hi Folks,
>  
> is there something around like a Javascript Analog Clock with moveable
> hands?
> Maybe even as a dojo widget?
>  
> Greetings from Germany
>  
> Fabian
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFDtF+h8nLgh/JJsxERAnjnAJ9jyiICzYqrLl7K1CvK5cTF0JE6bQCfT1kX
tmFAlGKHY0YGHDdkJh1wIVw=
=J2IM
-----END PGP SIGNATURE-----
_______________________________________________
Dojo-interest mailing list
Dojo-interest@...
http://dojotoolkit.org/mailman/listinfo/dojo-interest

Re: Javascript Analog Clock with moveable hands

by Damien Watson :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> It would be painful to do this because you can't draw anything but
> horizontal and vertical lines cross-browser, nor can you rotate
> images.

So what about:

http://www.walterzorn.com/jsgraphics/jsgraphics_e.htm
_______________________________________________
Dojo-interest mailing list
Dojo-interest@...
http://dojotoolkit.org/mailman/listinfo/dojo-interest

Re: Javascript Analog Clock with moveable hands

by Bob Ippolito :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


On Dec 29, 2005, at 5:15 PM, Damien Watson wrote:

>> It would be painful to do this because you can't draw anything but
>> horizontal and vertical lines cross-browser, nor can you rotate
>> images.
>
> So what about:
>
> http://www.walterzorn.com/jsgraphics/jsgraphics_e.htm

Creating and destroying a few thousand divs every frame of animation  
is ridiculous.  While that's technically possible to do, it's not at  
all practical.

-bob

_______________________________________________
Dojo-interest mailing list
Dojo-interest@...
http://dojotoolkit.org/mailman/listinfo/dojo-interest

Re: Javascript Analog Clock with moveable hands

by Damien Watson :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> > So what about:
> >
> > http://www.walterzorn.com/jsgraphics/jsgraphics_e.htm
>
> Creating and destroying a few thousand divs every frame of animation
> is ridiculous.  While that's technically possible to do, it's not at
> all practical.

"few thousand divs"?

I think he said clock, not Big Ben.

No, it's not optimum, but it's better than hundreds of images.  And if
you don't have a second hand, that's one frame per minute.
_______________________________________________
Dojo-interest mailing list
Dojo-interest@...
http://dojotoolkit.org/mailman/listinfo/dojo-interest