Re: The 'hanlder' element

On Tue 20 Jul 2004, James Bentley wrote:

> 
> That's a wonderful example, but, how would
> I bind it to a key event? Key events were
> introduced with XML Events.

You should really see the DOM 3 Events spec for
this. 
http://www.w3.org/TR/DOM-Level-3-Events/events.html#Events-TextEvents-Interfaces

<handler ev:event="textInput">
  getItOn();
</handler>


>  I assumed the
> 'handler' element was created to integrate with
> XML Events.  If there is another way, I'd love
> to use it.
> 
> Thanks.
> 
> -----Original Message-----
> From: Cameron McCormack [mailto:cam-www-svg@aka.mcc.id.au]
> Sent: Friday, July 16, 2004 8:32 PM
> To: 'www-svg@w3.org'
> Subject: Re: The 'hanlder' element
> 
> 
> 
> Hi James.
> 
> James Bentley:
> > Would it be possible for a 'handler' to contain
> > and/or reference SVG content? The 'handler'
> > can specify a type of 'image/svg'. The contents
> > of the 'handler' would not be rendered until
> > the event, to which it is bound, occurs.
> 
> I think that this could be done without changing the handler element,
> just by using SMIL to set the display property of a g element on the
> event you are interested in, for example:
> 
>   <g display="none">
>     <!-- stuff to display on rect click -->
>     <set begin="r.click" attributeName="display" to="inline"/>
>   </g>
>   <rect id="r" width="10" height="10"/>
> 
> Cameron
> 
> -- 
> Cameron McCormack
> |  Web: http://mcc.id.au/
> |  ICQ: 26955922

Received on Tuesday, 20 July 2004 13:06:31 UTC