Functions no longer supported in P4VJS

The following functions are no longer supported in P4VJS.

document.addEventListener('p4selection', function(e) { reportSelection(e.customData);});

Code injection cannot be implemented using HTTP. The P4VJS implementation of the selection is using JavaScript injection in the hosted windows. P4VJSdoes not support pushing data/adding events.

encodeForHTML(str)

encodeForHTMLAttribute(str)

encodeForJavaScript(str)

Encoding of characters to prevent XXS attacks cannot be implemented on the server. If there is a need for such encoding, you may use a JavaScript implementation, such as esapi4js, to do so.

setWebKitDeveloperExtrasEnabled(bool)

This is a WebKit toggle to enable the Inspector. The browser handles this, and the Perforce WebEngine environment provides the Inspector.

centralSettingsKey()

Visual Tools are registered as a type of custom tool and not via the centralSettings file.

Alerts/addAlert, deleteAlert, startAlertRefreshTimer, updateAlert

The nature of Alerts does not fit the HTTP paradigm. An Alert is not a Visual Tool. Initially, P4V only supports Visual Tools (not P4Admin).

getPermission(name, isUser, depotPath [, host])

This is an Admin only function.