Siebel Tools Reference > Application Configuration (Basic Concepts) > Application Enhancement Through Scripting and Object Interfaces >

Browser-Side Scripting


Browser script allows you to extend browser behavior using JavaScript, an interpreted language that runs in many Web browsers. Browser scripts respond to events on browser-side Java objects. These browser objects work in tandem with their corresponding objects running in the object manager.

Browser scripts are written using Siebel Tools and can be associated with the following Siebel object types: applets, business components, business services, and applications. See Figure 40.

Like their server-side counterparts, browser script object types enable you to write event procedures. However, the set of events that can be scripted with browser object types are different from their server-side counterparts. Browser-supported events can be scripted for the following cases:

NOTE:  In standard interactivity, the following Siebel objects are not available for browser scripting: applet, application, business component, and business service. You cannot write script to handle pre- and post- events. However, you can write scripts to handle control-level events such as Onclick, Onblur, and Text controls.

For scripting against browser-side events, you are provided with Browser Script children object types of the Application, Applet, Business Component and Business Service object types. These object types are illustrated below, along with their server-side (Script and Web Script—for scripting in Siebel VB, JavaScript, or Java) counterparts.

Figure 40. Customer Scripting Object Types

Click for full size image

The following example, shown in Figure 41, illustrates how you can configure client-side form field validation using Browser Script. It shows browser script for the Account BrowserBusComp PreSetFieldValue event handler.

Figure 41. Example Browser Script

Click for full size image

NOTE:  For employee-facing applications that use the High Interactivity Framework, business component browser script is appropriate when only active objects (that is, Siebel objects exposed on the UI) are used in the script.

For customer-facing, Standard Interactivity applications, Browser Script must be written on the control's onChange browser event and must use the native methods of the browser Document Object Model (DOM). Each control associated to an applet can be scripted for standard browser events, such as onChange, onMouseOver, onFocus, onMouseOut, and onBlur.


 Siebel Tools Reference, Version 7.5, Rev. A 
 Published: 18 April 2003