Downloads all the components that have been queued using addcomponentrequest.
dhtml语法
bsuccess = clientcaps.docomponentrequest()
return value
boolean. returns one of the following values:
true | the specified component(s) downloaded successfully. |
false | the specified component(s) were not downloaded. |
DHTML代码范例
This example uses the doComponentRequest and addComponentRequest methods to install the Microsoft® Internet Explorer Data Binding component, if the component does not already exist in the user's system.
<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
This feature requires Internet Explorer 5 or later. Click the icon below to install the latest version.
Then reload this page to view the sample.
是否符合公共标准
There is no public standard that applies to this method.
Applies To
更多语法参考
clientcaps, using dhtml behaviors, getcomponentversion, isComponentInstalled