addComponentRequest Method
Adds the specified component to the queue of components to be installed.
Syntax
oClientCaps.addComponentRequest(sID, sIDType [, sMinVer])
Parameters
sID Required. String that specifies any of the component identifiers listed in the Installable Components in Internet Explorer document. sIDType Required. String that specifies the case-insensitive type of the identifier specified in sID, or the following value:
componentid Active Setup identifier of the component. sMinVer Optional. String that specifies the minimum version number of the component to install.
Return Value
No return value.
Remarks
Only Microsoft® Internet Explorer components are specified by this method. Components not supported by Internet Explorer are ignored.
The addComponentRequest method queues a download request for the specified component. Actual download of the component does not occur until a call is made to the doComponentRequest method.
Example
This example uses the addComponentRequest and doComponentRequest methods to install the Internet Explorer Data Binding component, if the component does not already exist in the user's system.
Sample Code
<HTML xmlns:IE> <HEAD> <STYLE> @media all { IE\:clientCaps {behavior:url(#default#clientCaps)} } </STYLE> <SCRIPT> function window.onload() { var bDBAvailable = false; var sDBVersion = ''; var sDBID = "{9381D8F2-0288-11D0-9501-00AA00B911A5}"; bDBAvailable = oClientCaps.isComponentInstalled(sDBID,"componentid"); // if data binding is unavailable, install it if (!bDBAvailable) { oClientCaps.addComponentRequest(sDBID, "componentid"); bDBAvailable = oClientCaps.doComponentRequest(); } : } </SCRIPT> </HEAD> <BODY BGCOLOR="#FFFFFF"> : <IE:clientCaps ID="oClientCaps" /> : </BODY>
Applies To
[ Object Name ] Platform Version Win16: Win32: Mac: Unix: WinCE: Version data is listed when the mouse hovers over a link, or the link has focus. clientCaps
See Also
clientcaps, using dhtml behaviors, compareVersions, doComponentRequest, isComponentInstalled
Did you find this topic useful? Suggestions for other topics? write us!
© 1999 microsoft corporation. all rights reserved. terms of use.