Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New to the CF scene
    Join Date
    Jan 2007
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question How to use activeX functions in javascript

    Hi there!
    I'm new to activeX controls so yet I don't know much of how to work with them.
    I need to know how to use the functions contained in an activeX control when coding in javascript. I mean, can I pass a javascript string, integer or even a Date to any function of the activeX?
    What if I need an activeX function to store results in an output parameter, how do I pass that parameter in javacript?
    If someone knows something about this topic that can help me, I will appreciate it.
    Thanks

  • #2
    Senior Coder A1ien51's Avatar
    Join Date
    Jun 2002
    Location
    Between DC and Baltimore In a Cave
    Posts
    2,717
    Thanks
    1
    Thanked 94 Times in 88 Posts
    And there are billions of ActiveX controls, which specific one are you talking about?

    Eric
    Tech Author [Ajax In Action, JavaScript: Visual Blueprint]

  • #3
    New to the CF scene
    Join Date
    Jan 2007
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hi Eric,
    I'm talking about an activeX control I'll program myself.
    That's the point, I know I'll need to store results in output parameters when programming the activeX functions, and as you must know when a function returns by parameters you have to pass a variable for it to store the result, now the question is, if I'm using the function from Javascript what type of variable should I pass as the output parameter? If it were in C++ it would be easy, I'd just pass a pointer and that's it, but as far as I know, there are no pointers in javascript, are they?
    So I hope this clarifies the topic and if you still got any ideas.... please let me know.
    Thanks.

  • #4
    Master Coder felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, Australia
    Posts
    6,620
    Thanks
    0
    Thanked 645 Times in 635 Posts
    ActiveX only works in Internet Explorer and IE7 only has limited access to run ActiveX due to the hundreds of security holes created by existing ActiveX functions. To ensure that your activeX control will run after you finish creating it you will need to adjust the browser settings on each computer that is to access it in order to ensure that the browser knows that it is allowed to run that particular control.
    Stephen
    Learn Modern JavaScript - http://javascriptexample.net/
    Helping others to solve their computer problem at http://www.felgall.com/

    Don't forget to start your JavaScript code with "use strict"; which makes it easier to find errors in your code.

  • #5
    Smokes a Lot
    Join Date
    Jul 2003
    Location
    CA, USA
    Posts
    1,594
    Thanks
    5
    Thanked 20 Times in 20 Posts
    Depending on what your intentions are, you can pretty freely use active x controls within an hta application.

    http://msdn.microsoft.com/library/de...taoverview.asp

    Basscyst
    Helping to build a bigger box. - Adam Matthews


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •