The information in this article applies to:
SUMMARY
Microsoft Internet Information Services (IIS) version 5.0 with Active
Server Pages (ASP) and Internet Explorer provides enhanced client and
server capabilities components that can be combined to allow Web
developers greater control over the presentation of Web data to
clients. MORE INFORMATIONWARNING: ANY USE BY YOU OF THE CODE PROVIDED IN THIS ARTICLE IS AT YOUR OWN RISK. Microsoft provides this code "as is" without warranty of any kind, either express or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose. Client Capabilities in Internet ExplorerMicrosoft Internet Explorer 4.0 introduced several client-side attributes to the DHTML Object Model (DOM) that can be used in customizing a page layout after it has been rendered for the client. Internet Explorer 5.0 takes this a step further by exposing this information as one of the browser's Default Behaviors.The following table is a partial list of useful client capabilities. (For a more complete list see the MSDN clientCaps Behavior page.)
Browser Capabilities in IISIIS 5.0 adds server-side functionality by exchanging the client capabilities information through cookies and returning this information to an ASP page as part of the Browser Capabilities component. This allows Web developers that ability to write ASP code that is custom tailored for a client's display.ImplementationCombining the Internet Explorer 5.0 and IIS 5.0 functionality into a single implementation can be thought of as a two-step process:
Example ScenarioThe following ASP example uses the DHTML client capabilities "Clientcap.htm" page from earlier and shows some of the above properties in action. This example illustrates a splash screen style home page for a Web site by:
For more information, please see the Microsoft Scripting
Technologies Web site.
Keywords : |
Last Reviewed: February 2, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |