The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

yuchsiao (7) [Avatar] Offline
#1
Hi Elijah,


There is a sentence like
""
SVG doesn't have a corresponding property to innerHTML and therefore the .html() function on a selection of SVG elements has no effect.
""

I think there is a tag "foreignobject" in SVG that can be used for some purpose, though people report that Chrome doesn't support it properly. See thread: http://stackoverflow.com/questions/6987005/create-a-table-in-svg

Take a look and you make the best judgement how to revise the statement!
yuchsiao (7) [Avatar] Offline
#2
Re: 3.3.3 innerHTML for SVG
Besides, the soccer icon has been changed a little bit. Most apparently the size has been enlarger by a factor of 2.5 and the relative origin is at the left top instead of the center. So the resulting plot looks very different.
elijah.meeks (127) [Avatar] Offline
#3
Re: 3.3.3 innerHTML for SVG
You're right, there is svg:foreignObject, but it isn't well-supported and isn't considered good practice to use it. I'll update the text to make people aware of it.

I used svg:foreignObject extensively in an old application I made: http://orbis.stanford.edu/via/ and only later found out the hard way that it wasn't handled well.
yuchsiao (7) [Avatar] Offline
#4
Re: 3.3.3 innerHTML for SVG
WOW http://orbis.stanford.edu/via/ looks so much fun! It is like a strategy game! lol
elijah.meeks (127) [Avatar] Offline
#5
Re: 3.3.3 innerHTML for SVG
I based the design and functionality off of strategy games and Oregon Trail. I think when you're designing complex map-based applications, it's very useful to look at map-based games, where the designers have given significant thought to how to present lots of complex data on a map.
brandtryan (11) [Avatar] Offline
#6
Re: 3.3.3 innerHTML for SVG
Indeed, this geospatial application is very impressive. Quite the inspiration -- thanks for sharing!