On Wed, 24 Sep 2008 20:27:30 +0200, Helder Magalhães <[EMAIL PROTECTED]> wrote:
>> document.documentElement.currentTranslate.x = x; >> document.documentElement.currentTranslate.y = y; >> >> Have I missed something or does this functionality not work? > > Yes, you did! ;-) The "currentTranslate" is read-only... > > «readonly attribute SVGPoint currentTranslate;» [1] Well, currentTranslate is readonly, but the attributes the SVGPoint contains are read-write. Or as illustrated in this example: document.documentElement.currentTranslate = mysvgpoint; // Fails, currenttranslate is readonly document.documentElement.currentTranslate.x = 10; // Succeeds, the x attribute on SVGPoint is writable If you're in IE you should perhaps check the type of your documentElement, if the script is on the HTML-level for example it might not be what you expected. Cheers /Erik -- Erik Dahlstrom, Core Technology Developer, Opera Software Co-Chair, W3C SVG Working Group Personal blog: http://my.opera.com/macdev_ed ------------------------------------ ----- 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/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/svg-developers/join (Yahoo! ID required) <*> To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] <*> 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/

