W3C home > Mailing lists > Public > www-svg@w3.org > September 2001

Problem with SVG in a hidden table

From: Dean Jackson <dean@w3.org>
Date: Thu, 6 Sep 2001 23:57:58 +1000
To: andy.moss@philips.com
Cc: www-svg@w3.org, ozkan.ulu@philips.com, feike.sinnema@philips.com, nick.hoogland@philips.com, ger.van.dongen@philips.com
Message-ID: <20010906235758.C406@grorg.org>
Andy, you must be subscribed to post to the list.
I've forwarded this message. 


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 Thursday, 6 September 2001 09:59:46 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 8 March 2017 09:46:51 UTC