[svg-developers] node from id

2005-10-17 Thread osaka minami
hi, i am wondering what the quickest way is to get a node reference out of an element accessed by .getElementById(), let's say i want handle myItem as a node where myItem = document.getElementById('myItemId') in order to perform a removeChild() on it. it's an easy thing when i have an event on

Re: [svg-developers] node from id

2005-10-17 Thread osaka minami
well i just found document.getElementById('myItemId').parentNode.removeChild(document.getElementById('myItemId)); that's a wired logic... maiko hi, i am wondering what the quickest way is to get a node reference out of an element accessed by .getElementById(), let's say i want handle myItem

[svg-developers] document variable in SVG

2005-03-10 Thread osaka minami
hi list, i wonder why in SVG involving DOM manipulation by scripting one my find the document variable used without this being set, while others use longish init functiona with code like SVGDoc = evt.target.ownerDocument; is document defined somewhere in the specs (script binding?) or

Re: [svg-developers] document variable in SVG

2005-03-10 Thread osaka minami
hi cameron, that confirms my assumption. so why do most viewer support this already? document works at least in ASV2, ASV3, ASV6 and Batik. we could take the question the other way round: what SVG viewer supporting script and DOM manipulation *doesn't* understand the document variable? i guess