View Full Version : Displaying SVG images

28 Nov 2007, 6:32 AM

We have a grid that is populated with XML data. One of the columns is an svg image. Up till now we were generating an element for that cell like:
<embed src="url_to_svg" type="image/svg+xml" border="0" />
which was working fine.

We wanted to be able to send the svg xml code as part of the original XML data that populates the grid. I was hoping that the browser would display the image picking up the inline svg, but so far I haven't been very lucky with this.

Any ideas of how I could handle this case?

Thanks a lot,


28 Nov 2007, 9:07 AM
Its probably just not possible, due to the way browsers deal with embedded objects and images. in any case, its not an Ext specific issue, so you might have better luck on a forum that deals more with svg.