ForeignObject seems like the ideal tag to use for inserting Html content within Svg, however I believe IE9 does not (will not?) support the ForeignObject tag. The logic there it seems is that <div tags layered on top of the Svg should work just as well. There has been mixed support for ForeignObject in other browsers as well such as: http://code.google.com/p/chromium/issues/detail?id=65616
Here are a few decent resources for mixing Svg and Html: http://www.w3.org/Graphics/SVG/IG/resources/svgprimer.html#scripting_HTML http://www.schepers.cc/svg/blendups/scriptbridge/scriptbridge-insertBug.html This has been a useful little script and works well for a lot of scenarios: http://www.carto.net/papers/svg/gui/textbox/index.svg Best. On 1/19/2011 2:47 PM, gb_n_svg wrote: > Thomas > > Thank you for the advice. > I wondered if something like that might be an answer, (my colleagues did that > with a complex X-Windows UI, but that was 16 years ago!) so now I know!-) > (Not the answer I had hoped for :-) > > I assume I need to define the XHTML name space, and then use that within my > SVG? > > Thanks again > GB-) > > --- In [email protected], "th_w@..."<th_w@...> wrote: >> >> I tried something similar some time ago, and it's a pain. I'm not sure >> whether you can at all detect all possible keystrokes correctly, not to >> speak of accented characters and such. I'd probably go with an HTML<input> >> field inside a<foreignObject> right now, since the editable text currently >> is only supported by Opera, I believe. I would replace the >> to-be-edited-text with an<input>, and when editing is done, I would swap >> back the text element with updated content. I didn't try it, but I think it >> should be possible. > > >> >> Thomas W. ------------------------------------ ----- To unsubscribe send a message to: [email protected] -or- visit http://groups.yahoo.com/group/svg-developers and click "edit my membership" ----Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/svg-developers/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/svg-developers/join (Yahoo! ID required) <*> To change settings via email: [email protected] [email protected] <*> To unsubscribe from this group, send an email to: [email protected] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

