Re: Problem with SVG in a hidden table

Would it help if you said 'visibility:hidden' rather than 'display:none'? 
Perhaps display:none makes the browser treats the SVG in the DOM as if it 
were not there. With 'visibility:hidden', the object still "takes up space" 
but is not rendered.

Jon Ferraiolo
SVG 1.0 Editor
jferraio@adobe.com

At 11:57 PM 9/6/01 +1000, Dean Jackson wrote:
>Andy, you must be subscribed to post to the list.
>I've forwarded this message.
>
>Dean
>
>On Thu, 06 Sep 2001, andy.moss@philips.com wrote:
>
> > Hello www-svg@w3.org,
> >
> > I have a problem with accessing (line) objects in an SVG object via the 
> DOM. I'll explain the situation and the problem.
> >
> > The situation
> > I am displaying an SVG object in a hidden table setting the table style 
> as follows table.style.display=none. The SVG object contains a graph and 
> a curve. Both the graph and curve are represented using SVG line objects.
> >
> > The problem
> > I am not able to access the line objects in the SVG object while it is 
> hidden in the table. The following calls are made to retrieve the curve.
> >
> > var svgDoc = document.svgObject.getSVGDocument()        <---------- 
> This call returns the SVG Document.
> > var svgCurveObj = svgDoc.getElementById("Curve")        <---------- 
> This call returns null.
> >
> > After experimenting to find what the problem is, I saw that the curve 
> object is accessible from the DOM if the SVG object is not hidden i.e. I 
> put it in the BODY.
> >
> > My question is: Why is it not possible to retrieve objects in the SVG 
> object using the DOM when the SVG object is hidden?
> >
> >
> >
> > Thank you for any assistance you can provide in this matter,
> >
> > Andy Moss
> > Philips Communication, Security & Imaging
> > Software Development Team
> > Kapittelweg 10,  4827 HG   BREDA
> > P.O. Box 90106, 4800 RA   BREDA
> > The Netherlands
> > Tel:           ++31 (0)76 5721 214
> > Fax:          ++31 (0)76 5716 626
> > E mail:      andy.moss@philips.com

Received on Friday, 7 September 2001 12:22:08 UTC