Download the ActiveXObjects.com ActiveX Web SDK...
Browse the SDK online now...
ActiveX controls can be used many different ways , but for all the ActiveX controls
on this site , you use them by adding some HTML code to your web-pages and
interacting with them via script at the client and server side (Creating and configuring the control
on the client , and recieving the upload on the server) .
All our controls are safe for scripting and initialization , and there are a variety of ways
of using them in web-pages . For example , most of our controls support the ability
to be used like a web form , where you can add data from web form input controls like
text inputs and radio buttons to whatever data you are uploading , and all the data arrives
at your server in the same request , just as it would have with a regular web form . To see an
example of this , go here and test drive one of our controls posting files together
with regular form data .
|
|
Typically, you create ActiveX controls using HTML OBJECT tags, and then provide some alternative HTML
in between the OBJECT tags in case someone with a non-active browser uses your web page.
This is a rough example of the object tag used to create an ActiveX in a web page ...
<object>
name="MyActiveXObject"
id="MyActiveXObject"
classid = "clsid:880A66FC-DFCB-4950-87DC-0B49BA501517"
codebase = "/codewarehouse/activex/1900/BoomerangUpload.cab#version=2,0,0,0"
width = "100%"
height = "100%"
align = "center"
vAlign = "center"
hspace = "2"
vspace = "2"
StandBy = "Please wait for the control to download.">
<!-- Initialize with parameter tags -->
<param name="aparam1" value="somevalue1" />
<param name="aparam2" value="somevalue2" />
<param name="aparam3" value="somevalue3" />
<param name="aparam4" value="somevalue4" />
<param name="aparam5" value="somevalue5" />
</object>
As you can see. it is just like normal HTML code, and you specify properties so that the browser
knows which ActiveX control to create. You can use javaScript or PARAM tags to setup the control.
|