Re: [svg-developers] access svg elements from HTML5

2012-02-24 Thread Mark T
Hi Diana, Can you serve the page as svg? The server would have to send this header: Content-Type: image/svg+xml This may simplify the interaction of an embed with parent doc. (There would be none). MarkT On Thu, Feb 23, 2012 at 12:01 PM, Diana diana.perpig...@yahoo.com wrote: ** Hello all,

Re: [svg-developers] access svg elements from HTML5

2012-02-23 Thread JERROLD WARREN MADDOX
diana.perpig...@yahoo.com To: svg-developers@yahoogroups.com Sent: Wednesday, February 22, 2012 8:01:13 PM Subject: [svg-developers] access svg elements from HTML5 Hello all, I am very new to svg. I am trying to access an element (defined by id) in a svg file from HTML5, using jquery

[svg-developers] access svg elements from HTML5

2012-02-22 Thread Diana
Hello all, I am very new to svg. I am trying to access an element (defined by id) in a svg file from HTML5, using jquery if possible, but it's not successful. Here is part of the code: *** svg definition: svg version=1.1 id=Layer_1

Re: [svg-developers] access svg elements from HTML5

2012-02-22 Thread Jacob Beard
This is a pretty common question, and I think it needs to go in an FAQ somewhere. The reason why it's not currently working in your code snippet is that the SVG document inside the embed is not yet loaded. You need to add a load listener to wait for it. You can find a solution for this here: