Bookshelf Home | Contents | Index | PDF |
Configuring Siebel Business Applications > Configuring Siebel Web Templates and Siebel Tags > Configuring 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 the browser that the user uses with the Siebel client. These conditions use the following format: <service>, <method>, <args> ... For more information, see If Conditional Tag. This topic includes the term User Agent. This term is a synonym for browser. The User Agent header property of an HTTP request includes a unique identifier for the type of client that makes the request. For example, Mozilla 4.0, Internet Explorer 5.0, or Windows NT 4.0. Example of Creating Mappings for Browser TypesA swe:if tag in the template conditionally runs blocks of code. The Web Layout Editor provides a visual approximation of how Siebel CRM displays the applet in the Siebel client. In the Siebel client, the current browser determines the conditional sections in the template that Siebel CRM runs. 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 the type of browser that 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 © 2015, Oracle and/or its affiliates. All rights reserved. Legal Notices. | |