Solved

Capture ActiveX events in Javascript

Posted on 2009-03-31
5
705 Views
Last Modified: 2013-11-18
I have an activex control that fires events when it is clicked on etc (Its a video player control).  The activex control has default events and other events which are not deault.

I can add event handlers to the default events (right click, oncreated etc) but when I add event handlers to the other events i cannot seem to get them to work.

I am using Visual Studio 2008 to debug my web page.  How can I see if these other events are being fired off properly, how can I best debug this?

Here is some code for the events I am able to handle.
NtlxVideoCtrl = new ActiveX( "objVideoCtrl", null, null, 640, 480 );
VideoCtrl.classid = "1B33918E-B218-11D3-BF35-00A0CC3DBDF9";	//VideoCtrl
VideoCtrl.defineParam ("firescriptevents", "true");
VideoCtrl.defineParam ("mode", "16");
VideoCtrl.handleEvent( "OnPaneSelect(sPane,sCamera)", "handlePaneSelect(sPane,sCamera)" );
VideoCtrl.handleEvent( "OnCameraDrop(sPane,sCamera)", "handleCameraDrop(sPane,sCamera)" );
VideoCtrl.handleEvent( "OnRBClick(sPane,sX,sY)", "handleRBClick(sPane,sX,sY)" );
VideoCtrl.handleEvent( "OnCreated()", "handleCreated()" );

Open in new window

0
Comment
Question by:Wanting2LearnMan
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 

Author Comment

by:Wanting2LearnMan
ID: 24027691
anyone??
0
 

Author Comment

by:Wanting2LearnMan
ID: 24028428
no experts today hmmmmmmm
0
 
LVL 29

Accepted Solution

by:
David H.H.Lee earned 500 total points
ID: 24035851
Hi Wanting2LearnMan,
You can try this active-x debugger, try it and determine if you going to use it for your development team:
http://script-debugger-ide.sg-team.downloadsoftware4free.com/
0
 

Author Comment

by:Wanting2LearnMan
ID: 24037870
The link for the trial script debugger is not working, please help
0
 
LVL 29

Assisted Solution

by:David H.H.Lee
David H.H.Lee earned 500 total points
ID: 24046487
Hi Wanting2LearnMan,
Ok, i've glanced across the useful tips to rectify the problem:
http://msdn.microsoft.com/en-us/library/w54zfak1(VS.80).aspx
http://support.microsoft.com/kb/167715

0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Foolproof security solutions has become one of the key necessities of every e-commerce or Internet banking website. If you too own an online shopping site then its vital for you to equip your web portal with customer security features that can allow…
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
Wufoo.com provides powerful tools for surveying targeted groups, and utilizing data from completed surveys to find trends, discover areas of demand or customer expectation, and make business decisions on products or services.

751 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question