Jump to content
Software FX Community

event capturing

User (Legacy)

Recommended Posts


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.


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");


if (nSerie == 0)

window.location.href = "DrillDownOne.htm"


window.location.href = "DrillDownTwo.htm"

Chart1.ReturnValue = 1



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


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



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




Software FX

Link to comment
Share on other sites


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

  • Create New...