views:

273

answers:

2

I'm creating a google wave gadget that needs to embed SVG. I don't want to do because that means I need to generate separate svg file and store somewhere on the web.

I would like to simply add inside the Google Wave Gadget.

The person who created the Canvas Gadget (Source Code) has done this, but I can't figure out what he did to get this work. When I simply add tags inside the gadget, the browsers ignore the tag and anything inside the svg element.

A: 

From what i have seen you cannot embed the image. What can be done is to make a base64 encoded version of the graphic and embed that.

PurplePilot
A: 

The Canvas Gadget you linked to uses Raphael to render dynamically render SVG. You should look into using that within yours, too:

http://raphaeljs.com/reference.html

Brian McKenna