homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
Forum Library, Charter, Moderator: open

JavaScript and AJAX Forum

Script to changing radius for SVG circle
Is this a browser bug, or do I need to force redraw?

 10:23 pm on Feb 6, 2007 (gmt 0)

This is similar to my (unresolved) thread in Multimedia, but I hope a bit easier...

So, the problem is, I have an SVG circle:

<circle cx="799" cy="184" r="200" fill="#0066ee" id="cir" />

And I want to make it bigger, via this line


But although the r property seems to be defined ([object SVGAnimatedLength], but it's blank), changing the value like this seems to have no effect on the display. I'm testing with a new version of Opera if that helps...



 3:33 pm on Feb 7, 2007 (gmt 0)

It's OK, forget that. I was doing something stupid, and I should have been using setAttribute() instead of an equality!

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved