When using html:object in Mozilla you *can* access the SVGDocument
object by using the HTMLObjectElement.contentDocument attribute.
http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-9893177
If you need to access the 'window' of the SVG document from a script
in the HTML document you can
Hi, Rerun-
You can generally avoid the whole issue by not using CSS. If you aren't
using CSS classes, then you won't lose anything by using style attributes
rather than properties.
So, instead of:
circle cx='10' cy='35' r='12' style='fill:red; stroke:green;
stroke-width:3;'/
And accessing it
That worked great, and the code is even a bit cleaner. While I'm on the
subject of Mozilla implementations, I have another question regarding
scripting. Mozilla has implemented the embed tag reluctantly I see,
but still advocates the object tag. This is all all well and good,
but the
Hi couloir007,
I don't know for sure about Mozilla but your example will
work with Batik, if you add the third parameter to setProperty,
also I think that you should access style as a 'property' not
as a getter:
svgobj = document.getElementById(id);
svgstyle = svgobj.style;
On Sat, 05 Feb 2005 01:35:03 -, couloir007 [EMAIL PROTECTED] wrote:
The Code below apparently is an Adobe specific way of setting fill
color. I believe GetStyleData would be the Mozilla equivalent. Not
sure though since I can't get it to work. Does anyone know how to do
this in
The Code below apparently is an Adobe specific way of setting fill
color. I believe GetStyleData would be the Mozilla equivalent. Not
sure though since I can't get it to work. Does anyone know how to do
this in Mozilla? I've had some limited success altering CSS
attributes, but would like to
6 matches
Mail list logo