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
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

mtndan - April 10, 2008 - 18:29

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

kratib - April 11, 2008 - 20:20
Assigned to:Anonymous» kratib

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

mtndan - April 14, 2008 - 12:29

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

kratib - April 17, 2008 - 09:34
Category:support request» bug report

That's a bug. I'll work on it. Thanks!

#5

mtndan - April 17, 2008 - 14:32

Great - thanks again

#6

kratib - April 17, 2008 - 16:04
Status:active» fixed

Fixed in -dev. Please check and let me know.

#7

mtndan - April 18, 2008 - 12:25

It works! Nice job.

Thanks again.

#8

Anonymous (not verified) - May 2, 2008 - 12:25
Status:fixed» closed

Automatically closed -- issue fixed for two weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.