Jump to content
Software FX Community

event capturing


User (Legacy)
 Share

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...