#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2000
    Posts
    1
    Rep Power
    0

    JavaScript/JScript and COM Interfaces


    Dear All,

    Can you either use or even implement COM Interfaces in JavaScript? I Know that you can use ActiveX objects in JScript, but as for using COM Interfaces....

    Shaun
  2. #2
  3. No Profile Picture
    Seņor Member
    Devshed Beginner (1000 - 1499 posts)

    Join Date
    Aug 2000
    Posts
    1,157
    Rep Power
    37
    I doubt it. COM is a Microsoft technology. JavaScript is most certainly not. However, take a look at this: http://www.mozilla.org/projects/xpcom/. I usually access the COM objects through VBScript in ASP. If I need to access the data in JavaScript, I write it to JavaScript variables.
    Michael
  4. #3
  5. No Profile Picture
    CF sMod
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2000
    Location
    Maine, USA (a.k.a. Boonies)
    Posts
    242
    Rep Power
    14
    Just an informative note, XPCOM has nothing to do with the MS COM architecture. While they operate much in the same way, the Mozilla architecture is cross-platform (XPCOM objects work on any platform where a Mozilla-based browser is installed). All that's required is to register the XPCOM object, then you can script it from Javascript using XPConnect. Very neat, and very powerful stuff.
    Jason Contact Me
    Super moderator @ CodingForums

IMN logo majestic logo threadwatch logo seochat tools logo