Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Capture ActiveX events in Javascript

Posted on 2009-03-31
5
Medium Priority
?
710 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 1500 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 1500 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

Will your db performance match your db growth?

In Percona’s white paper “Performance at Scale: Keeping Your Database on Its Toes,” we take a high-level approach to what you need to think about when planning for database scalability.

Question has a verified solution.

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

These days, all we hear about hacktivists took down so and so websites and retrieved thousands of user’s data. One of the techniques to get unauthorized access to database is by performing SQL injection. This article is quite lengthy which gives bas…
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
The purpose of this video is to demonstrate how to set up the WordPress backend so that each page automatically generates a Mailchimp signup form in the sidebar. This will be demonstrated using a Windows 8 PC. Tools Used are Photoshop, Awesome…
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…

705 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