Configuring Siebel eBusiness Applications > Specialized Behavior Supported by Web Templates >

About Browser Group-Specific Templates


The SWE framework supports a set of browser group-related conditions that can be checked in the Web templates using Siebel tags <swe: if> condition tag. This allows you to display different sections of a template based on which browser is used to access the application. The conditions for the <swe:if> tag are in the format <service>, <method>, <args> ...

The information about the supported user agents is defined in the Web Browser Administration views. Siebel applications have a series of predefined browsers and their associated capabilities. An example of capabilities includes FrameSupport, which indicates that a browser can support frames. Customers can modify the records that define these browsers and their capabilities as new browsers or new versions of existing browsers are introduced. Details on how to do this are provided in the Applications Administration Guide.

NOTE:  Practically speaking the term "User Agent" is a synonym for "Browser." Its usage comes from the User Agent header property of an HTTP request which provides a unique identifier for the type of client that is making the request, such as "Mozilla/4.0 (compatible; MSIE 5.0; Windows NT 4.0)" for Microsoft Internet Explorer 5.0.

For more information about <swe:if>, see Conditional Tag: <swe:if>.

Example of Checking for a User Agent

Service: Web Engine User Agent

Method: IsUserAgent

Args: UserAgent:<A User Agent name defined in the UA.INI file>

Purpose: Checks for a particular User Agent.

Example:

<swe:if condition="Web Engine User Agent, IsUserAgent, 'UserAgent:MSIE 5.5'">

...

</swe:if>

The condition evaluates to TRUE for the Microsoft Internet Explorer 5.5 browser and FALSE for all other browsers.

Example of Checking for User Agent Capabilities

Service: Web Engine User Agent

Method: TestCapability

Args: Capability Name:Capability Value

Purpose: Check for specific user agent capabilities. When more than one capability is provided as an argument, the condition evaluates to TRUE when the user agent has all these capabilities (AND operation).

Example:

<swe:if condition="Web Engine User Agent, TestCapability, 'JavaScript:TRUE', 'JavaApplets:TRUE'">

...

</swe:if>

The condition evaluates to TRUE for any user agent that supports JavaScript and Java Applets in the browser.

Example Microsoft Internet Explorer Capabilities

The following example shows the capabilities associated with Microsoft Internet Explorer:

[IE 5.0]

CookiesAllowed=TRUE

HighInteract=TRUE

ActiveX=TRUE

Browser=IE

Version=5

DefaultMarkup=HTML

VBScript=TRUE

JavaScript=TRUE

JavaApplets=TRUE

User-Agent=Mozilla/4.0 (compatible; MSIE 5.0

SynchExternalContent=TRUE

FramesSupport=TRUE

TablesSupport=TRUE

Below is an example of the extended sections for Microsoft Internet Explorer:

[MSIE 5.0]

User-Agent=Mozilla/4.0 (compatible; MSIE 5.0

Parent=IE 5.0

Accept=image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-powerpoint, application/vnd.ms-excel, application/msword, */*

[MSIE 5.5]

User-Agent=Mozilla/4.0 (compatible; MSIE 5.5

Parent=IE 5.0

Version=5.5

Accept=image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-powerpoint, application/vnd.ms-excel, application/msword, */*

XML=TRUE

WAP=FALSE

StyleSheets=TRUE

JavaScriptVer=1.3

DHTML=TRUE

Configuring Siebel eBusiness Applications