W3C home > Mailing lists > Public > www-svg@w3.org > May 2006

Re: SVG12: DOM-based animation

From: Andrew Shellshear <Andrew.Shellshear@research.canon.com.au>
Date: Tue, 09 May 2006 17:12:51 +0200
Message-ID: <4460B173.5020301@research.canon.com.au>
To: www-svg@w3.org
CC: Bjoern Hoehrmann <derhoermi@gmx.net>

Bjoern Hoehrmann wrote:
>* Andrew Shellshear wrote:
>>>>  <handler type="application/ecmascript" ev:event="timer">
>>>>        if (evt.target == mytimer)
>>>>        {
>>>>        showAndGrowElement();
>>>>        }
>>>>  </handler>
>>>This is one of the reasons why the example can't work as expected, the
>>>'timer' event is only ever dispatched to the event listeners registered
>>>on the Timer object, not to any node in the document. At least the draft
>>>does not mention that.
>>We have added the following to the description of the Timer event:
>>This event is only applicable to 'svg' elements.
>>The target of the event is the 'svg' element.
>That would make sense only with major changes to the 'Timer' interface;
>could you elaborate on these changes? How, for example, with this model,
>would one distinguish between two 'timer' events from different Timer

I apologise in advance if I'm not quite getting your point (and I suspect
I'm not), but the example above shows how you would distinguish between two
timer events from different Timer objects.  In particular, the line:

if (evt.target == mytimer)

I hope that this answers your questions.  Please let us know shortly if  
this does not address your concerns.

Received on Tuesday, 9 May 2006 15:13:08 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 8 March 2017 09:47:08 UTC