
using VBScript to access a function in an activex control
Hello-
this is what i am trying to do:
myhomepage.htm
----------------
<SCRIPT LANGUAGE="VBScript">
Call UserControl1.setInitialValues("192.168.1.106", "/Palm/")
Call UserControl1.addToFileList("PC", "Cities.pdb")
Call UserControl1.addToFileList("PC", "People.pdb")
Call UserControl1.addToFileList("Server", "Baseball.pdb")
Call UserControl1.addToFileList("Server", "Cars.pdb")
</SCRIPT>
<OBJECT ID="UserControl1"
CLASSID="CLSID:B32DC0D9-8A6C-11D5-9F76-00D009250769"
CODEBASE="PalmActiveX.CAB#version=1,0,0,0">
</OBJECT>
note: inside of UserControl1, there are PUBLIC functions for
setInitialValues and addToFileList.
i keep receiving an error message that 1) the object doesn't support this
property or method or 2) Object required: UserControl1 when i try to access
myhomepage.htm in IE 5.0 on a client machine. does anyone know the reason
for this??? btw, when i try this in the browser on the server everything
works fine... thanks.
mark.