I am developing a SVG viewer for a web application. I have to work with existing SVG files and deal with them to show tooltips, do effects with mouse events…
I have looked for a good library to do that and RaphaelJS seems useful and it has IE compatibility (even IE8).
However, after several attemps, I can’t get the embed element with SVG throught Raphael.
Is this not possible? If not, How can I do it?
My code where I load SVG files is:
<embed wmode="transparent" id="viewer" src="svg/mouseover.svg" pluginspage="http://www.adobe.com/svg/viewer/install/" type="image/svg+xml" width="100%" height="100%"/>
Thanks in advanced.
as fas as i know, raphael is not used to embed existing svg in web pages. instead, its purpose is to allow you to use javascript to create svg dynamically
see http://net.tutsplus.com/tutorials/javascript-ajax/an-introduction-to-the-raphael-js-library/
EDIT:
have a look at https://github.com/wout/raphael-svg-import, though