svgweb

Reinitialize SVGweb for ajax

不想你离开。 提交于 2019-11-29 16:06:56
I have no problem using SVGweb when page is simply loaded (opened). How is it possible to reinitialize SVGweb in order to redraw all SVG on the page? Anotherwords I need SVGweb to rescan and rerender everything on the page. source (from this): <script type="image/svg+xml"> <svg> ... </svg> </script> to this (like SVGweb si doing that when simply open the page): <svg> ... </svg> I need this because I change the SVG graphics using ajax and need to rerender it on the page. I needed the same capability and figured out how to do this properly without modifying the svgweb source or calling the

Reinitialize SVGweb for ajax

末鹿安然 提交于 2019-11-28 09:54:20
问题 I have no problem using SVGweb when page is simply loaded (opened). How is it possible to reinitialize SVGweb in order to redraw all SVG on the page? Anotherwords I need SVGweb to rescan and rerender everything on the page. source (from this): <script type="image/svg+xml"> <svg> ... </svg> </script> to this (like SVGweb si doing that when simply open the page): <svg> ... </svg> I need this because I change the SVG graphics using ajax and need to rerender it on the page. 回答1: I needed the same