Bookshelf Home | Contents | Index | PDF |
Configuring Siebel Business Applications > Configuring Siebel Web Templates and Siebel Tags > Customizing Siebel Web Templates and Siebel Tags > Displaying Different Sections of a Template Depending on the Browser TypeYou use the Web Browser Administration views in the Siebel client to define capabilities for various browsers. FrameSupport is an example of a capability. It indicates that a browser can support frames. You can modify the records that define each browser as a new browser or if you introduce a new version of a current browser. For more information, see Siebel Applications Administration Guide. You can use conditions in the swe:if tag to display different sections of a template, depending on which browser the user uses with the Siebel client. These conditions use the following format: <service>, <method>, <args> ... For more information, see If Conditional Tag. NOTE: This topic includes the term User Agent. This term is a synonym for browser. The User Agent header property of an HTTP request provides a unique identifier for the type of client that makes the request. For example, Mozilla/4.0 (compatible; MSIE 5.0; Windows NT 4.0) for Microsoft Internet Explorer 5.0. Example of Creating Mappings for Specific Browser TypesA swe:if tag in the template conditionally executes blocks of code. The Web Layout Editor provides a visual approximation of how Siebel CRM renders the applet in the Siebel client. In the Siebel client, the current browser determines the conditional sections in the template that Siebel CRM executes. For example, you can associate a template with a view that contains the following tags: <swe:if condition="Web Engine User Agent, TestCapability, 'FrameSupport:TRUE'"> <swe:frameset htmlAttr="cols='33%,66%'' border='1' frameborder='Yes'"> <swe:frame type="Applet" htmlAttr="marginheight='0' marginwidth='0' scrolling='Auto'"> <swe:applet id="101" hintText="Applet" var="Parent"> <swe:this property="FormattedHtml"/> Example of Identifying the Type of BrowserYou can use the following example code to identify which type of browser the user is currently using. In this example, the condition evaluates to TRUE for the Microsoft Internet Explorer 5.5 browser and FALSE for all other browsers: <swe:if condition="Web Engine User Agent, IsUserAgent, 'UserAgent:MSIE 5.5'"> This example uses the following objects:
Example of Determining Browser CapabilitiesYou can use the following example code to determine browser capabilities. In this example, the condition evaluates to TRUE for any browser that supports JavaScript and Java Applets: <swe:if condition="Web Engine User Agent, TestCapability, 'JavaScript:TRUE', 'JavaApplets:TRUE'"> This example uses the following objects:
Capabilities of an Example BrowserThis topic lists the capabilities that the Microsoft Internet Explorer version 5.0 browser supports. You can use this information as input to the TestCapability business service method:
Capabilities of the Extended Sections of Microsoft Internet ExplorerThis topic lists the capabilities that the extended sections of the Microsoft Internet Explorer browser supports. You can determine the following capabilities for Microsoft Internet Explorer version 5.0:
You can determine the following capabilities for Microsoft Internet Explorer version 5.5: |
Configuring Siebel Business Applications | Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Legal Notices. | |