|
clickable chart: javascript alert() from the gallery |
Posted by laloune on May-31-2012 01:16 |
|
Hello everyone,
I'm currently discovering chartdirector and it's rather good !
I have a question regarding the gallery chart: http://www.advsofteng.com/gallery_map.html
the first one caught my interest: I would like to make the same behaviour, i.e. when clicking then a pop-up. I downloaded the php library that comes with the documentation, but I cannot find the code corresponding to the chart on the gallery page.
I tried this:
# Create an image map for the chart
$imageMap = $c->getHTMLImageMap("javascript:alert(['{xLabel}'];)");
but as a result he link is still:
javascript:alert(['2000'];)?x=4&xLabel=2000&dataSet=4&dataSetName=&value=1100
how to get rid of what is behind the "?"
thanks for your help!
laloune |
Re: clickable chart: javascript alert() from the gallery |
Posted by Peter Kwan on May-31-2012 01:28 |
|
Hi laloune,
You may use an empty space as the second parameter (instead of omitting it, in which case the default value will be used):
$imageMap = $c->getHTMLImageMap("javascript:alert(['{xLabel}'];)", " ");
Hope this can help.
Regards
Peter Kwan |
Re: clickable chart: javascript alert() from the gallery |
Posted by laloune on May-31-2012 01:33 |
|
oh my ! how great ! it helped a lot !
still I should have read the documentation deeper: "Note that an empty string means to use the default query query parameters. To specify no query parameter, use a space character."
thanks very much for your support (and your quickness, this is even quicker as the phone
laloune |
|