[Fwd: [Moderator Action] Where has my event.srcElement gone?]


Forwarded message 1

  • From: Simon Bull <simonb@n-space.com.au>
  • Date: Tue, 8 May 2001 01:35:59 -0400 (EDT)
  • Subject: [Moderator Action] Where has my event.srcElement gone?
  • To: www-svg@w3.org
  • Message-ID: <3AF7859E.6A1158F@n-space.com.au>
Hi all,

I have an SVG/JavaScript problem, which looks like this.  I

<g onmousedown="mouseDownEvent(evt)">

embedded within an SVG image that is drawn (by IE5.5 with adobe's
SVG2.0 plugin) with the following HTML:

<EMBED ID="svgEmbedTag" SRC="../images/image.svg">

The problem is that when my mouseDownEvent(event) script runs,
event.type and event.button behave as expected, but event.srcElement
contains the undefined value. How can I get a reference to the HTML
element that triggered the event??

Any help would be vastly appreciated!



Received on Tuesday, 8 May 2001 03:42:04 UTC