Base URL (BaseURL)

Defines the base URL used to find the related resources of the HTML widget. The value can be a directory or file.

"BaseURL=BaseURLName"

Value Description
BaseURLName Absolute path of a directory or file; directory name must end in a slash, file should not. For example: D:\docs\index.html or http:\\www.mycorpfotos.com\images\

If not specified, the working directory is used as the default.

Usage

Dynamic? Yes
Supported in Grid? No
Dependencies: None

Description

The Base URL is used to calculate the location of relative references to other resources, such as images, in the HTML content. For example, if Base URL is http://localhost:8086/resources/ and the widget contains the following image reference:

<img src="image1.png">

…the complete image URL is http://localhost:8086/resources/image.png.

If Base URL has no value, it uses the working directory as the base URL.

The Base URL property works in the same way as the HTML <base> tag. Thus, if you set the property to http://mywebapp/images/, it has the same effect as the following tag in the HTML:

<base href="http://mywebapp/images/">

If the HTML content of the widget contains a <base> tag, the Base URL property is ignored.

Using in ProcScript

You can use $properties or $fieldproperties to set or get the property and its value. For more information, see $properties and $fieldproperties.

$fieldproperties(FLD) = "baseurl=http://localhost:8086/resources/"

Applies To

uhtml (HTML Widget)