doComponentRequest Method

DHTML, HTML, & CSS

doComponentRequest Method


Downloads all the components that have been queued using addComponentRequest.

Syntax

bSuccess = oClientCaps.doComponentRequest()

Return Value

Boolean. Returns true if the specified component(s) downloaded successfully, or false otherwise.

Example

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.

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
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.
Microsoft Internet Explorer

Applies To

[ Object Name ]
PlatformVersion
Win16:
Win32:
Mac:
Unix:
WinCE:
Version data is listed when the mouse hovers over a link, or the link has focus.
clientCaps

See Also

clientcapsInternet Link, using dhtml behaviorsInternet Link, getComponentVersion, isComponentInstalled


Back to topBack to top

Did you find this topic useful? Suggestions for other topics? write us!Internet Link

© 1999 microsoft corporation. all rights reserved. terms of useInternet Link.