Solved

Capture ActiveX events in Javascript

Posted on 2009-03-31
5
690 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
  • 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Using Quotation Marks in PHP This question (http://www.experts-exchange.com/Web_Development/Web_Languages-Standards/PHP/Q_28217211.html) seems to come up a lot for developers who are new to PHP.  And it got me thinking, "How can we explain the rule…
JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
This video teaches viewers how to create their own website using cPanel and Wordpress. Tutorial walks users through how to set up their own domain name from tools like Domain Registrar, Hosting Account, and Wordpress. More specifically, the order in…
The viewer will learn the basics of jQuery including how to code hide show and toggles. 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…

762 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now