Jump to content
Software FX Community

Can we capture ChartFX Events on a browser window


User (Legacy)

Recommended Posts

Hi

Is it possible to catch various user generated events on browser using

JavaScript/vbscript e.g. double click, mouse down etc. The reason I'm asking

this is that I would like to embed hot spots on our dynamically generated

chartFX image sitting on the chartFX activeX control on the client browser

window, and hyperlink them to other resources. By embedding I mean providing

various hyperlinks from different parts (series or points) of the chart. I

would've thought that if I can capture user events like one can do if the

chart is running inside application environment such as Visual Basic, I can

achieve this. But if there is another way to do this sort of stuff can

someone kindly let me know.

Many thanks in advance.

Malcolm

Link to comment
Share on other sites

To capture an event in the client (assuming you are using the ActiveX client

inside IE), this is what you do:

<SCRIPT LANGUAGE="JavaScript" FOR="Chart1" EVENT="LButtonDblClk(x, y,

nSerie, nPoint, nRes)">

<!--

if ((nSerie == -1) || (nPoint == -1))

alert("You didn't click on any marker");

else

if (nSerie == 0)

window.location.href = "DrillDownOne.htm"

else

window.location.href = "DrillDownTwo.htm"

Chart1.ReturnValue = 1

-->

</SCRIPT>

<OBJECT CLASSID="CLSID:21F49842-BFA9-11d2-A89C-00104B62BDDA"

TYPE="application/x-oleobject"

WIDTH="50%" HEIGHT="50%" ID="Chart1"

CODEBASE=/download/CfxIEAx.cab#Version=5,5,9,0

>

<PARAM NAME="LICENSE" VALUE="/license/CfxIE.lic">

</OBJECT>

--

FP

Software FX

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...