[svg-developers] Calling SVG From HTML

2011-07-12 Thread gmcaulee
I would like to call a script function in a SVG document that is embedded in an HTML document. The following HTML and SVG files work in Firefox, Opera, IE9 but not Chrome (have not tested in Safari). My questions are: 1) How can I get this to work in Chrome? 2) Is there a general way to do th

Re: [svg-developers] Calling SVG From HTML

2011-07-13 Thread Oliver Boermans
On 13 July 2011 13:21, gmcaulee wrote: >         >    function sayHello() { >                alert("Hello from test.svg!!!"); >    } > >  // ]]> It’s similar to working between an iframe and the containing document. You can expose the function in the parent document. You can do this di

Re: [svg-developers] Calling SVG From HTML

2011-07-13 Thread Mark T
If you have time & the project context allows, maybe try inverting the HTML <-> SVG. SVG being the top document, then place the html as a foreignObject. There are different 'issues' admittedly. Though in this scenario the browsers are starting with well formed xml. The browser renderer then does no