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

Message ListMessage List     Post MessagePost Message

  Passing getHTMLImageMap from page to page
Posted by Stephen Chan on Nov-24-2011 10:54
Hi Peter,
Thx for your help in advance.

I am generating pie chart in asp, pie chart and getHTMLImageMap can be generated successfully but what can I do to pass the ImageMap source from page to page?

because I am having another line chart in another asp page, once the link on the line is clicked, pie chart is showing below the line chart.
Basically looking at the pie chart allocation at that period of time in the line chart.

I can get the pie chart working but ImageMap cannot be passed.

Please help

Appreciated.

Stephen

  Re: Passing getHTMLImageMap from page to page
Posted by Peter Kwan on Nov-25-2011 00:49
Hi Stephen,

The image map is just normal HTML text. You can pass the image map from page to page using the same method you pass any text from page to page.

You mentioned "once the link on the line is clicked, pie chart is showing below the line chart". Does it mean that the pie chart is shown without refreshing the entire web page? There are many methods to achieve this, and I am not sure which method you are currently using. The followings are some possibilities I can think of:

(a) An <IMG> tag is put under the line chart, and some Javascript is used to set the URL of the <IMG> tag to show the pie chart. According to HTML standard, the <IMG> tag cannot accept an image map. So it is not possible to transfer the image map this way.

(b) An <IFRAME> tag is put under the chart, and some Javascript is used to set the URL of a web page that contains a pie chart to the <IFRAME>. This method will work with image map. As an example, you can set the URL of the <IFRAME> to one of the clickable chart sample code (eg. clickbar.asp) that comes with ChartDirector, and your <IFRAME> will show a chart with image map.

Note that you cannot directly set the URL of the chart image in the <IFRAME>. You must set the URL of a web page that contains the chart image (an <IMG> tag that contains the chart) and the image map. It is because according to HTML standard, the image and the image map must be delivered in two separate HTTP connections. So it is not possible to use one URL to directly receive both the image and the image map.

(c) Some AJAX framework is used to put the chart image and the image map under the line chart. In this case, you would need to refer to the documentation of your AJAX framework on how to transfer HTML (the image map is just normal HTML) to your web page.

If you need further help, would you mind to clarify exactly how you put the pie chart under line chart?

Regards
Peter Kwan