Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. XML / XSL
  4. How to calling GetObject() in XML?

How to calling GetObject() in XML?

Scheduled Pinned Locked Moved XML / XSL
javascriptcomhostingcloudxml
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • W Offline
    W Offline
    whiteclouds
    wrote on last edited by
    #1

    Hi all! I am a new one in XML. Now I have a project which need to call GetObject() function with the syntax of JavaScript. The aim of this action is to get an object of a COM. The COM is created by myself. This COM has several interface. One of these interface is named as NetworkClass. And the COM is named as WindowsNetwork. Now I'm sure that this COM had been registed in windows correctly. I write the code as following:

    var WindowsNetwork = GetObject("WindowsNetwork,NetworkClass");

    But an error is return. It say that this object is undefined. The variable is invalid. I think this is because of the syntax error of GetObject(). Maybe it shouldn't be written as this if a COM have several interface. So I hope someone could be kind to tell me how to write this code. Thx! Best Regards! whiteclouds

    There is some white cloud floating on the blue sky. That's the landscape I like.

    R 1 Reply Last reply
    0
    • W whiteclouds

      Hi all! I am a new one in XML. Now I have a project which need to call GetObject() function with the syntax of JavaScript. The aim of this action is to get an object of a COM. The COM is created by myself. This COM has several interface. One of these interface is named as NetworkClass. And the COM is named as WindowsNetwork. Now I'm sure that this COM had been registed in windows correctly. I write the code as following:

      var WindowsNetwork = GetObject("WindowsNetwork,NetworkClass");

      But an error is return. It say that this object is undefined. The variable is invalid. I think this is because of the syntax error of GetObject(). Maybe it shouldn't be written as this if a COM have several interface. So I hope someone could be kind to tell me how to write this code. Thx! Best Regards! whiteclouds

      There is some white cloud floating on the blue sky. That's the landscape I like.

      R Offline
      R Offline
      Roll 1
      wrote on last edited by
      #2

      Try with var WindowsNetwork = GetObject("WindowsNetwork.NetworkClass"); Also Refer http://www.c-point.com/javascript\_tutorial/jsfncGetObject.htm Regards Akhila

      W 1 Reply Last reply
      0
      • R Roll 1

        Try with var WindowsNetwork = GetObject("WindowsNetwork.NetworkClass"); Also Refer http://www.c-point.com/javascript\_tutorial/jsfncGetObject.htm Regards Akhila

        W Offline
        W Offline
        whiteclouds
        wrote on last edited by
        #3

        Thx for your reply. My problem had been resolved. :-D

        There is some white cloud floating on the blue sky. That's the landscape I like.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups