Welcome to WebmasterWorld Guest from 54.166.232.243

Forum Moderators: open

Message Too Old, No Replies

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)

Junior Member

10+ Year Member

joined:Nov 19, 2003
posts:165
votes: 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

document.getElementById('cir').r=500;

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)

Junior Member

10+ Year Member

joined:Nov 19, 2003
posts:165
votes: 0


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

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members