|
Any known Issues with Tooltips |
Posted by Joe on Aug-17-2013 03:03 |
|
Are there any known bugs with the latest version of PHP chartdirector and IE (version 9 or higher). We have a client reporting on a desktop IE browser, they cannot get the tooltips on our charts to appear. We have not been able to replicate this issue, so I am wondering if there are any known bugs or if it is user related. Thank you. |
Re: Any known Issues with Tooltips |
Posted by Peter Kwan on Aug-17-2013 16:23 |
|
Hi Joe,
What ChartDirector actually does is output HTML image maps. (The HTML <area> tags.)
Usually, your code will include a "title" attribute in the image map. For example, in the
"Simple Clickable Chart" sample code, the sample code uses the following line to include
the "title" attribute in the image map:
$imageMap = $c->getHTMLImageMap("xystub.php", "", "title='{xLabel}: [{dataSetName}]
{value}'");
The image map should be inserted in a suitable location in the HTML web page and
referenced by the image. For example, in the sample code, there are the following lines:
<img src="getchart.php?<?php echo $chart1URL?>" border="0" usemap="#map1">
<map name="map1">
<?php echo $imageMap?>
</map>
Note that the image map is inserted between <map> tags, and the <img> tag reference
the <map> tags with the usemap attribute.
If done correctly, for most browsers, if it sees the image map with the title attribute, it
will handle it as a pop up tooltip.
So if no tooltip is seen, the first thing to trouble-shoot is to examine the HTML output
(you may ask your client to save the web page from the browser, so you can get a copy
of the HTML as seen by your client's browser). Then you may examine it to see if it is
valid. For example, is the image map inserted between <map> tags (which is required
according to HTML standard)? Are the name of the <map> tag unique? Have the <img>
reference the <map> tag? Have the <img> been resized? (Most browsers will not
automatically resize the image map if you view the image at a different size from its
native size.) Is there any other thing (including invisible transparent objects) that covers
the image so that the image cannot receive mouse events? Are there third party
Javascript libraries that interfere with mouse processing?
You may open the same web page that your client has saved to check if you do see the
tooltip or not to see if the issue is browser specific.
If you need further help, you may attach the web page as seen by your client (including
the HTML, and all the associated image and Javascript files - the browser "Save As"
feature should be able to save all of them in one step) so I can try to examine it. If you
cannot attach the web page in this forum, you may email it to me at
pkwan@advsofteng.net.
Regards
Peter Kwan |
|