Salesforce

BrowserScriptExecute (Magic xpa 4.x)

« Go Back

Information

 
Created BySalesforce Service User
Approval Process StatusPublished
Objective
Description

BrowserScriptExecute (Magic xpa 4.x)

Executes a script command for the Browser control (JavaScript, VBScript).

This is useful for manipulating the control, such as setting values for the control's parameters or activating specific scripts for the control.

The function is only active for controls in the same task's form.

Syntax:

BrowserScriptExecute(control name, value, sync, language)

Parameters:

control name: The name of the Browser control.

value: The script command to execute. The attribute is Alpha, Unicode, or BLOB (with ANSI/Unicode content).

sync: Determines whether the engine will wait until the command is executed.

language: The language to use for running the script. This optional parameter is for use when executing scripts in a language other than JScript. (Since version: 1.8)

Returns:

TRUE – If the command was sent.

FALSE – If the action failed, that is, if there is an internal error, such as a non-existing control or the error returns from the control.

Note:

  • When you use this function, you need to make sure that the page was fully loaded into the browser.

  • The Windows MSHTML assembly must be loaded in the Component Resource Repository (CRR) for this function to work. (Since version: 2.2)

  • This is a client-side only function.

Exceptions:

This function is not supported in Web Client tasks.

See also:

BrowserGetContent, BrowserSetContent

The Online and Rich Client Samples project (program HG45 and RHG45)

Reference
Attachment 
Attachment