ASE Home Page Products Download Purchase Support About ASE
ChartDirector Support
Forum HomeForum Home   SearchSearch

Message ListMessage List     Post MessagePost Message

  <a></a>
Posted by Xochitl Mora on Jul-16-2014 21:35
HI, I need your help please, that is, I show a softmultibar.pl but I need put <a></a> label HTML, I used CGI script for show chart:


my $place="<a href='http://testing.lab.com' target='_blank'>$nom_subest{$p_subest}</a>"

$c->addTitle("GRAFICA COMPARATIVA DE EVENTOS: $place", "arialbd.ttf", 14);

print <<EndOfHTML;
                        <img align="center" src="getchart.pl?img=/tmp/tmpcharts/$chart1URL" border="0" usemap="#map1">
                        <map name="map1"> $imageMap </map></center>??
                </td>
        </tr>
</table>
EndOfHTML

It show in Web Interface:
           GRAFICA COMPARATIVA DE EVENTOS:=<a href='http://testing.lab.com' target='_blank'>$nom_subest{$p_subest}</a>


Can you help me please because I need show the $nom_subst with weblink.

  Re: <a></a>
Posted by Peter Kwan on Jul-17-2014 03:50
Hi Xochitl,

ChartDirector charts are images. The <A> tag is only used in HTML, not in images. For
example, if you create an image using Windows Paint and put some text in the image, you
cannot use <A> tag to put the link in the image. For images, instead of embedding the <A>
tag in the image (which is not possible), you would need to use an external image map
comprises of <AREA> tags.

There is an example called "Custom Clickable Objects" in ChartDirector that demonstrates
how to make the title clickable. May be you can use it as a reference. See:

http://www.advsofteng.com/doc/cdperl.htm#customclickable.htm

Basically, the above example includes code to create an <AREA> tag for the title and insert
the <AREA> tag into the image map.

Hope this can help.

Regards
Peter Kwan