Hi! I want to change de menu tree dynamical depending on which element on which element i click. I Make a NewMenu element in the SVG. Then i try to retrive it and change it in the script, but the changes dont seem to take effect.
something like this in the SVG: <defs> <menu id='NewMenu' xmlns='http://foo' onload='GetPosition( evt )'> <item action='ZoomIn'>Zoom &In</item> <item action='ZoomOut'>Zoom &Out</item> <item action='About'>About SVG Viewer...</item> </menu> </defs> and something like this in the script: else if(evt.button == 2){ var menu = SVGDoc.getElementById("NewMenu"); mChilds = menu.getChildNodes(); for(var i = 0; i < mChilds.length; i++){ if(mChilds.item(i).getAttribute("action") != 'About' ){ menu.removeChild(mChilds.item(i)); } } } after i do this something like this the zoom items are gone in the tree but are still in the right click menu... Anybody have a clue? Ivar ----- To unsubscribe send a message to: [EMAIL PROTECTED] -or- visit http://groups.yahoo.com/group/svg-developers and click "edit my membership" ---- Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/svg-developers/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/