|
Passing the parameters to a function with in the same page |
Posted by Priyanka on Jan-13-2015 16:42 |
|
Hello Peter,
I am working on Drill down or clickable 3D scatter Charts in ASP.net C#.
For clickable charts when we use getHTMLImageMap function we need to pass aspx file name and parameters.
// present code
DailyDeptChart.ImageMap = c.getHTMLImageMap("DailyProjectActivityChart.aspx", " &Dept={field1} &Discipline=" + Discipline + " &Year=" + Year + " &Month=" + Month,
"title='Department : {xLabel} : {field1} \\n Project : {yLabel} : {field2} \\n Percentage of Hours : {z} % \\n Total Hours : {field0} hrs'");
But if I want to display the chart in the same page by passing the parameters of the clicked point to another function with in the page. Is it possible?
//what I want
BindDailyProjectActivityChart( {field1}, Discipline , Year, Month);
Regards,
Priyanka. |
Re: Passing the parameters to a function with in the same page |
Posted by Peter Kwan on Jan-14-2015 03:56 |
|
Hi Priyanka,
Yes. You may refer to the "Javascript Clickable Chart" sample code for an example:
http://www.advsofteng.com/doc/cdnet.htm#jsclickable.htm
In the Javscript Clickable Chart sample code, the function is invoked by onmouseover and
onmouseout. You can change them to onclick or onmousedown to fit your own needs. In
this case, the URL (the first parameter to getHTMLImageMap) is not needed. You may
replace it with an empty string or with "javascript:;".
Hope this can help.
Regards
Peter Kwan |
|