Namespace: util

bcdui. util

Namespaces

clipboard
datetime
Event
url
xml

Methods

staticbcdui.util._sendFormRequest()

util/utilPackage.js, line 479
sends a HTTP request using HTML form submit {string} url the url to call {object} [args] optional arguments {string} [args.method=get] request method {string} [args.target=_blank] the target {string} [args.enctype=application/x-www-form-urlencoded] the enctype {object} [args.parameters] object map with parameters to send

staticbcdui.util.createCustomElement(elementName, createdCallback)

util/utilPackage.js, line 531
Custom element creation helper.
Name Type Description
elementName string The name of the custom element to create, must adhere to custom element standards.
createdCallback function The function which is called on the element once it is attached to the document, the context is set to the element.

staticbcdui.util.escapeHtml(string){string}

util/utilPackage.js, line 226
Name Type Description
string string Value to be escaped
Returns:
Type Description
string Escaped string

staticbcdui.util.getUuid(){string}

util/utilPackage.js, line 585
Generates a new UUID
Returns:
Type Description
string uuid

staticbcdui.util.setSubjectPreference(name, value, callback)

util/utilPackage.js, line 597
sets a subject preference
Name Type Description
name string The name of the subjectSetting
value string The value of for the subjectSetting specified by the name parameter. Can be a comma-separated value list
callback function The function which is called after a successful call of the subjectPreferences servlet

staticbcdui.util.toQueryParams(url, separator){string}

util/utilPackage.js, line 61
Logic derived from PrototypeJs library to "Parses a URI-like query string and returns an object composed of parameter/value pairs".
Name Type Description
url string URL with the parameters
separator
Returns:
Type Description
string An object with the parameters of the url as properties

staticbcdui.util.unescapeHtml(string){string}

util/utilPackage.js, line 214
Name Type Description
string string Value to be unescaped
Returns:
Type Description
string unescaped string