Scripts That You Write for the Browser

Browser script allows you to use JavaScript, which is an interpreted language that runs in many web browsers. A browser script responds to an event on a browser Java object. This browser object works with the corresponding object that runs in the object manager. The set of events that you can script with a Browser object type is different from the set of events that you can script with a server script:

  • For Siebel CRM, you can script a wide variety of events that the browser supports. An HTML control does not support the OnClick event. For more information, see Siebel eScript Language Reference.

  • For a Siebel employee application, you can only script on the OnBlur or OnFocus events.

You use Siebel Tools to write a browser script. You can associate a browser script with the following object types:

  • Applet

  • Business Component

  • Business Service

  • Application

Note: A browser script on a business component is appropriate only if Siebel CRM displays the Siebel object that the script references in the Siebel client.

Hierarchy of Object Types That Siebel CRM Uses With a Script

The following figure shows the hierarchy of relationships between object types that Siebel CRM can use with a script. There is a one-to-many relationship between the following objects:

  • Applet and Applet Browser Script

    Applet and Applet Server Script

  • Business Component and BusComp Browser Script

    Business Component and BusComp Server Script

  • Business Service and Business Service Browser Script

    Business Service and Business Service Server Script

  • Application and Application Browser Script

    Application and Application Server Script

To script a browser event, you use a child object type of the parent. You can use these object types with their server counterparts in Siebel Visual Basic, JavaScript, or Java.

Hierarchy of Relationships Between Object Types That Siebel CRM Uses with a Script: this image is described in the surrounding text.