Hi Dale,
> I have a old piece of code, which I think I got from Adobe for
> performing a check to see if the browser supports SVG. It works ok for
> IE, but it seems to assume that if its not IE then plugins need to be
> checked. This to me doesn't seem to be valid anymore as some browsers
> support SVG natively.
Nope, the script from Adobe only properly checks for ASV.
> I have been googling to see If I can find a script that will determine
> if SVG is suported for a browser, but no joy, cant find one. This is
> how I imagine it would work, Returning true for for all browser and
> versions that SVG is known to be supported on, checking for a plugin
> on browsers that require a pluggin and returning true or false
> depending on if its installed or not, and return false in all other
> scenrios.
Yes, I've also struggled with it recently...
> I would imagine this already exists, anybody know where I might find
> this?
I did something like that for a demo [1] recently. Just "view source"
and search for the key methods: "hasNativeSVG" and "hasPluginSVG". I'm
using this check in order to insert a script required for SVG Web [2]
(SVG run-time implemented in Flash) whenever no SVG support is
available, as I've found that the library seems to mess with native
implementations whenever inserted into the document (more research is
needed).
Note that the plug-in checked currently only checks for ASV (3 and 6
beta) and Renesis (1.x, not V3), although there are a lot [3] more
plug-ins available for IE.
Finally, you may want to keep distinguishing plug-in vs. native
support in your application: native support will typically allow you
to do things a plug-in implementation can't, such as seamlessly
playing with other contexts (in the HTML environment, for example).
Nevertheless, ASV and even Renesis to some extend allow native-like
things to be performed.
> Thanks,
> Dale
Hope this helps,
Helder
[1]
http://heldermagalhaes.com/stuff/svg/demos/SVGObject-HTMLCanvasInteractors/[2]
http://code.google.com/p/svgweb/[3]
http://wiki.svg.org/Viewer_Matrix_______________________________________________
dev-tech-svg mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-tech-svg