Monday, June 3, 2024
 Popular · Latest · Hot · Upcoming
155
rated 0 times [  161] [ 6]  / answers: 1 / hits: 48535  / 13 Years ago, mon, august 8, 2011, 12:00:00

I'm trying to create a table-like object within an SVG document. Currently, due to the fact that SVG does not have a table element, I am using an HTML parser to go through and convert an HTML table, (created by the user in an HTML table Builder), to a group of SVG objects, and then adding that to my overall SVG drawing. I was wondering if any one was able to find a better alternative to this method, such as an SVG table builder? I'm looking to accomplish this using Javascript or jquery. Any ideas or suggestions would be appreciated.


More From » jquery

 Answers
4

I would simply embed a real table in my SVG:



<?xml version=1.0 standalone=yes?>
<svg xmlns=http://www.w3.org/2000/svg>
<foreignObject x=10 y=10 width=100 height=150>
<body xmlns=http://www.w3.org/1999/xhtml>
<table><!-- ... --></table>
</body>
</foreignObject>
<!-- ... -->
</svg>

[#90735] Sunday, August 7, 2011, 13 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
donovantyriqn

Total Points: 271
Total Questions: 98
Total Answers: 113

Location: Saint Vincent and the Grenadines
Member since Sat, Sep 11, 2021
3 Years ago
;