Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Unable to call ActiveX Control functions from javascript

Posted on 2009-02-11
6
Medium Priority
?
722 Views
Last Modified: 2013-11-18
I have made an ActiveX Control which I will be using to embed in browser and will be calling to send some data from web page to the activeX Control. I have made some public methods in my ActiveX Control but unable to access them, although I could do it yesterday, but somehow am unable to do it after some more changes.

Please could you let me know what are the steps which needs to be done in order to achieve the same, the steps which I have done are as follows:

1. Entry in header file for the method.
2. Making an enum entry in header file to obtain the dispId.
3. Its definition in cpp file.
4. Entry in .idl file with an id associated with it.
5. Entry in DISPATCH map with the enum id associated with it.

Please let me know in case am missing something else.

Thanks,
Ashish
0
Comment
Question by:Bigflicks
  • 4
  • 2
6 Comments
 
LVL 13

Expert Comment

by:kaylanreilor
ID: 23611184
Perhaps you should re-register your ActiveX after having altered it with your new methods.
0
 

Author Comment

by:Bigflicks
ID: 23611545
ok i will check and let know.
pramod
0
 

Author Comment

by:Bigflicks
ID: 23631955
No it wasnt the problem with ActiveX Control, it was security at IE which was not allowing even Javascript to fire, I reset it to default and then it started working. Although registering is something which I am not doing manually but Visual Studio is doing.

Anyways thanks for the prompt help.

Thanks,
Ashish Jain
0
Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

 
LVL 13

Accepted Solution

by:
kaylanreilor earned 1500 total points
ID: 23632218
So when you said "although I could do it yesterday" that meant that between "yesterday" and the day after your IE settings had changed ?
0
 

Author Comment

by:Bigflicks
ID: 23632243
Yes, because I added Safe Scripting and Safe Initialization of control using Create Component Category and thus I need to alter settings.
Thanks for the help.

0
 

Author Closing Comment

by:Bigflicks
ID: 31545538
No it wasnt the problem with ActiveX Control, it was security at IE which was not allowing even Javascript to fire, I reset it to default and then it started working. Although registering is something which I am not doing manually but Visual Studio is doing.

Anyways thanks for the prompt help.

Thanks,
Ashish Jain
0

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Question has a verified solution.

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

I made this because I wanted to get e-mail with a attached csv file so I'd would be able to import user input into a MS Excel template, but I also wanted to register/save all inputs from each day in a file on the server. 1st - It creates a temp C…
Before we dive into the marketing strategies involved with creating an effective homepage, it’s crucial that EE members know what a homepage is. In essence, a homepage is the introductory, or default page, of a website that typically highlights the …
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…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Suggested Courses
Course of the Month21 days, 3 hours left to enroll

810 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