Configuring Siebel eBusiness Applications > Overview of Configuring Siebel Applications > About 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 7.

Like their server-side counterparts, browser script object types allow 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:

  • For Siebel customer applications, a wide array of browser-supported events can be scripted. However, the OnClick event is not supported for HTML controls.

    See Siebel eScript Language Reference for detailed information.

  • For Siebel employee applications, the OnBlur and OnFocus events are the only control events that can be scripted.

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 7 shows the various scripting objects.

Figure 7.  Scripting Object Types
Click for full size image

The following example, shown in Figure 8, 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 8.  Example Browser Script
Click for full size image

NOTE:  For employee 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 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.

Configuring Siebel eBusiness Applications