How to access member class of activex control

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



I'm creating an activex custom media player and have added methods
which are accessible from Javascript using DISP_FUNCTION. This works,
for instance by calling Player.Play() Player.Stop(), etc from
javascript in IE. However what I like to do, is be able to call the
appropriate member class of my activex control directly to handle
commands, keeping methods where they belong, inside the class. The
correct Javascript syntax would be Player.Controller.Play(), or
Player.View.GoFullscreen() etc.

I've seen this syntax in Javascript with other activex controls so I
know it can be done, for instance how Windows Media Player control is
manipulated from Javascript using Player.Controls.Play()

I've searched but haven't been able to find the answer, hopefully
someone here can help.

Thanks!

.



Relevant Pages

  • Re: web page with filename entry
    ... My example is pure JavaScript, there is no Active X involved. ... > warning, and it works fine, but I have to by pass it every time I start ... > "initialize and script activex controls not marked as safe" to "enable". ... >> I do not know how to ensure a new window, ...
    (microsoft.public.frontpage.programming)
  • RE: Script and Native debugging IE with ActiveX
    ... I understand your concerns that it is difficult to debug Javascript and the ... ActiveX control called by Javascript at the same time. ... Native debuggers is good at debugging the ...
    (microsoft.public.vsnet.debugging)
  • Calling ActiveX component method from JScript
    ... I am trying to call ActiveX function which resides on a client ... 2005 ActiveX component with one exported method which ... I tried in two ways to call the ocx method from javascript: ...
    (microsoft.public.scripting.jscript)
  • Re: Issue
    ... the computers of visitors with inferior browsers and JavaScript enabled. ... file, and when the naughty file is executed by the user, it may infect the ... All ActiveX exploits ... I conclude that js isn't the problem, but poor browser design and those ...
    (comp.infosystems.www.authoring.html)
  • Re: JavaScript for web-based 4GL (was: OpenQM doco in Wiki)
    ... sort of stuff I thought that ADO would have been part of anything. ... JavaScript on web pages for some time now, ... Another use is to control ActiveX ...
    (comp.databases.pick)