- From: Jonathan Watt <0jaw@qlink.queensu.ca>
- Date: Mon, 11 Feb 2002 20:02:32 -0500
- 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:
document.getElementById('obectElementId').contentDocument;
and I guess its window object would be available through:
document.getElementById('obectElementId').contentDocument.window;
I should really have looked at the working draft first. :)
Thanks again,
Jonathan.
At 04:42 PM 2/11/2002 -0600, Robert Diblasi wrote:
>Jonathan,
>
>....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:
>http://www.protocol7.com/svg-wiki/default.asp?InterDocumentCommunication
>http://www.protocol7.com/svg-wiki/default.asp?EmbedingSvgInHTML
>http://www.protocol7.com/svg-wiki/default.asp?InlineExamples
>
>Hope this helps you
>
>We all learn by sharing what we know
>Robert A.DiBlasi
>http://www.svgnotebook.com
>
>
> >>> 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?
>
>Thanks,
>
>Jonathan.
Received on Monday, 11 February 2002 20:02:01 UTC