svg generates iframe?
mtndan - April 10, 2008 - 18:11
| Project: | Graphviz Filter |
| Version: | 5.x-1.0 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | kratib |
| Status: | closed |
Jump to:
Description
Hi, I've gotten your filter to work - thanks!
My goal is to have clickable nodes. They only way that seems to work is if I use SVG as the format. However, when I do that, the graph is rendered inside of an iframe and when you click a node, the new page is loaded in the iframe as well.
Any help would be appreciated!

#1
It appears this is only a firefox issue.
Is there any other output format (like the image map) I can use that supports clickable regions?
#2
You can add the attribute @map = TRUE to a normal PNG or JPG as described in the USAGE section of the module page. Did you try that?
#3
I did try... no luck. It appears there is something mismatched with the generated html. Take a look (note especially the "usemap" attribute in the img tag not matching the "id" attribute of the map tag):
<div class="content"><div class="graphviz-image"><img src="http://fepcorp/File/graphviz/806ba56b64afc309c5c3fee0ef68a34a_0.jpg" title="Business Solutions Administration" alt="graphviz_filter rendering" usemap="#G" />
<map id="org_chart" name="org_chart">
<area shape="rect" href="http://fepcorp/user/381" title="Quarterman, Robert" alt="" coords="189,6,357,54"/>
<area shape="rect" href="http://fepcorp/user/124" title="Parlett, Henry" alt="" coords="212,102,335,150"/>
<area shape="rect" href="http://fepcorp/user/124" title="Katz, Dan" alt="" coords="5,198,101,246"/>
<area shape="rect" href="http://fepcorp/user/124" title="Waring, David" alt="" coords="125,198,256,246"/>
<area shape="rect" href="http://fepcorp/user/124" title="Fonville, Deborah" alt="" coords="280,198,432,246"/>
<area shape="rect" href="http://fepcorp/user/124" title="Valdellon, Aldrin" alt="" coords="456,198,605,246"/>
</map>
</div>
#4
That's a bug. I'll work on it. Thanks!
#5
Great - thanks again
#6
Fixed in -dev. Please check and let me know.
#7
It works! Nice job.
Thanks again.
#8
Automatically closed -- issue fixed for two weeks with no activity.