- From: James Bentley <James.Bentley@guideworkstv.com>
- Date: Tue, 20 Jul 2004 08:09:18 -0600
- To: 'Cameron McCormack' <cam-www-svg@aka.mcc.id.au>, "'www-svg@w3.org'" <www-svg@w3.org>
That's a wonderful example, but, how would
I bind it to a key event? Key events were
introduced with XML Events. 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 10:20:59 UTC