W3C home > Mailing lists > Public > www-svg@w3.org > July 2004

Re: The 'hanlder' element

From: Cameron McCormack <cam-www-svg@aka.mcc.id.au>
Date: Sat, 17 Jul 2004 12:31:37 +1000
To: "'www-svg@w3.org'" <www-svg@w3.org>
Message-ID: <20040717023137.GA13357@mcc.id.au>

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 Friday, 16 July 2004 22:31:44 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 5 February 2014 07:14:54 UTC