[svg-developers] Re: Detect SMIL presence with Javascript

2008-10-06 Thread Andreas Neumann
Additivity is the next feature I want to be working on. But the solution I imagine requires a big refactoring of the code. So, I have to gather courage and time. cool - thanks for considering it That said, workarounds exist : You can use nested g's and dispatch the animations to them. the

[svg-developers] Re: Detect SMIL presence with Javascript

2008-10-06 Thread Andreas Neumann
Thank you for the hint. http://www.codedread.com/svgtest.svg is a useful page. Switches seem to work with feature strings in ASV/IE, but it seems that it is not supported to query feature strings using the DOM. It neither works with the 1.0 features strings, nor with the 1.1 features strings. I

Re: [svg-developers] Re: Detect SMIL presence with Javascript

2008-10-05 Thread David Leunen
Andreas, support of the onend event handler attribute. I would need to have notification that an animation finished so I can react with some script. i've committed revision 30 : http://bazaar.launchpad.net/~smilteam/smil/MAIN/revision/30 onbegin, onend and onrepeat are partially implemented.

Re: [svg-developers] Re: Detect SMIL presence with Javascript

2008-10-04 Thread David Leunen
Thanks Andreas, while we are at FakeSMILe: Are there any plans for further developments? Specifically I would need additive=sum support and support of the onend event handler attribute. I would need to have notification that an animation finished so I can react with some script.

[svg-developers] Re: Detect SMIL presence with Javascript

2008-10-04 Thread Jeff Schiller
--- In svg-developers@yahoogroups.com, Andreas Neumann [EMAIL PROTECTED] wrote: and I forgot to tell you, FakeSMILe doesn't support hasFeature either. yes - I am aware. while we are at FakeSMIL: On a sidenote, the library's name is FakeSmile [1] Not FakeSMILe. Not FakeSMIL. :) I

[svg-developers] Re: Detect SMIL presence with Javascript

2008-10-04 Thread Frank Bruder
When the feature strings don't work, here's a method I've been using. Start your script delayed with a setTimeout command. svg onload=startScript=window.setTimeout('animateIt()', 500) ... and use the onbegin handler to cancel the script if declarative animation starts animate

[svg-developers] Re: Detect SMIL presence with Javascript

2008-10-03 Thread Andreas Neumann
perfect - Thank you for your very quick answer! Andreas --- In svg-developers@yahoogroups.com, David Leunen [EMAIL PROTECTED] wrote: Hi Andreas, I wonder how I can detect with Javascript whether a browser implements SMIL or not. You can test this :

[svg-developers] Re: Detect SMIL presence with Javascript

2008-10-03 Thread Andreas Neumann
it seems like our friends at Adobe did not implement the feature testing ;-( There really should be a solution for these IE SVG problems ... Andreas --- In svg-developers@yahoogroups.com, David Leunen [EMAIL PROTECTED] wrote: Hi Andreas, I wonder how I can detect with Javascript

Re: [svg-developers] Re: Detect SMIL presence with Javascript

2008-10-03 Thread David Leunen
it seems like our friends at Adobe did not implement the feature testing ;-( really ? I'm surprised. Maybe with the SVG 1.0 feature string : org.w3c.svg.animation See http://www.w3.org/TR/SVG/feature.html for more info. and I forgot to tell you, FakeSMILe doesn't support hasFeature either. I

[svg-developers] Re: Detect SMIL presence with Javascript

2008-10-03 Thread Andreas Neumann
really ? I'm surprised. Maybe with the SVG 1.0 feature string : org.w3c.svg.animation See http://www.w3.org/TR/SVG/feature.html for more info. hm - I tried document.implementation.hasFeature(org.w3c.svg.animation,1.0) and ASV returns false. Is this the correct way to test feature strings