W3C home > Mailing lists > Public > www-svg@w3.org > February 2002

Re: JavaScript communication across the object element

From: Jonathan Watt <0jaw@qlink.queensu.ca>
Date: Mon, 11 Feb 2002 20:02:32 -0500
Message-Id: <>
To: "Robert Diblasi" <rdiblas@wpo.it.luc.edu>, <www-svg@w3.org>
Hmm ... very strange. I was sure I tried upward referencing from the SVG 
document to the HTML document via both 'parent' and 'top' and it didn't 
work. Seems to work fine this time though, so I guess I made a silly 
mistake. Thanks for the help Robert.

FYI examination of the DOM-Level-2-HTML WD reveals that a document embeded 
into a page using the object element should be available from the HTML 
document in the future through:


and I guess its window object would be available through:


I should really have looked at the working draft first. :)

Thanks again,


At 04:42 PM 2/11/2002 -0600, Robert Diblasi wrote:
>....if you head over to SVG Wiki country....I think you will see some 
>example of what your looking for......might work for you....give it a 
>try....lots to learn from the SVG Wiki
>I think you may of had trouble with linking to SVG in HTML document
>or the other way around...so here is a link to help with that:
>Hope this helps you
>We all learn by sharing what we know
>Robert A.DiBlasi
> >>> Jonathan Watt <0jaw@qlink.queensu.ca> 02/11/02 04:05PM >>>
>The recommended way to embed SVG into an HTML document is to use the object
>tag. However I can't seem to find a way to enable my scripts in the HTML to
>communicate with my scripts in the SVG and vise versa when I use this
>method. Has anyone else tried to do this and, if so, did you have any success?
Received on Monday, 11 February 2002 20:02:01 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 8 March 2017 09:46:52 UTC