W3C home > Mailing lists > Public > www-svg@w3.org > June 2005

RE: Questions on SVGTimer

From: MAHE Vincent RD-TECH-REN <v.mahe@francetelecom.com>
Date: Fri, 10 Jun 2005 15:27:23 +0200
Message-ID: <B30D6148F304A743A53B9B44751CDB9A02FA9A6F@FTRDMEL2.rd.francetelecom.fr>
To: "James Bentley" <James.Bentley@guideworkstv.com>, <www-svg@w3.org>
I have already submitted a proposal to the WG about this question because there are 2 potential ways of creating an SVG TImer :
See http://lists.w3.org/Archives/Member/w3c-svg-wg/2005AprJun/0888.html
You can either create a timer via an EventTarget (SVGElement, SVGDocument, SVGSVGElement) or via SVGGlobal.
It depends whether you consider that a timer is a global object for the document or if it is related to a given element in the document.
I'm still waiting for a RESOLUTION on this. Jon Ferraiolo proposes to have that timer creation method in SVGDocument.
We will discuss this hopefully on next tuesday telcon


	De : James Bentley [mailto:James.Bentley@guideworkstv.com] 
	Envoyé : vendredi 10 juin 2005 14:54
	À : MAHE Vincent RD-TECH-REN; www-svg@w3.org
	Objet : RE: Questions on SVGTimer
	Thank you,
	What is the possibility of getting an SVG element for defining the timer in the document?


	From: MAHE Vincent RD-TECH-REN [mailto:v.mahe@francetelecom.com] 
	Sent: Friday, June 10, 2005 1:57 AM
	To: James Bentley; www-svg@w3.org
	Subject: RE: Questions on SVGTimer
	Hello James,
	The SVGTimer interface already has a stop() method which enables you to stop the timer. 
	If you call stop() and then start(), this is equivalent to a reset, right ?
	Concerning the event generated, I've been given an action to define a new "timer" event because the WG has decided to introduce this new event in the list of SVG events.


		De : www-svg-request@w3.org [mailto:www-svg-request@w3.org] De la part de James Bentley
		Envoyé : jeudi 9 juin 2005 19:30
		À : 'www-svg@w3.org'
		Objet : Questions on SVGTimer

		Given that an SVG Timer is obtained from SVGGlobal, is there an IDL specification of SVGGlobal that defines the method for this?

		Also, I realize this is in 1.2 full, what is the possibility of creating an element for this timer and extending its methods to include a reset?

		My current requirement is to support screen transitions based on user inactivity - i.e. a screen saver. I'm not certain that this can be accomplished with the 'set' element - since 'set' only changes attribute vaules and can not invoke a script, and script does not have animationTiming attributes. However, since SVGTimer is an EventTarget, I can add an EventListener to it to insure that I can produce the expected behavior. With the addition of a reset method, I can restart the timer when I get user activity - delaying the listener from being executed.

		This, however, brings up another question. What Event will be generated by the SVGTimer upon timeout? 

		Thank you. 
Received on Friday, 10 June 2005 13:28:42 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:54:07 UTC