Namespace

secmgr

secmgr

MeadCo ScriptX 'window.secmgr' shim (support for modern browsers and IE 11) JS client library

The MeadCo Security Manager Add-on for Internet Explorer is included on a html document with an <object id='secmgr' /> element with a de-facto standard id of 'secmgr'.

The object is referenced with the property window.secmgr which exposes properties and methods.

The MeadCo Security Manager Add-on for Internet Explorer provided for prompting the user to accept use of the license that enabled advanced features of ScriptX.Add-on. Frequently there was then no further reference to Security Manager and in such cases this shim is not required.

This use case can be emulated by using appropriate attributes on an element (for example a <script></script>) on the page and including meadco-scriptxprint.js to process the attributes. This shim is then not required.

Please note that when working with ScriptX.Services for Windows PC meadco-scriptxprintlicensing.js is required even with the use of attributes.

This shim is required if you have code that relies upon being able to inspect the availability of a license.

Full documentation on the properties/methods is provided by the technical reference documentation for the ScriptX Add-on for Internet Explorer: https://www.meadroid.com/Developers/KnowledgeBank/TechnicalReference/ScriptXAddOn/secmgr. That documentation is not reproduced here.

If the startup script determines that the MeadCo Security Manager Add-on for IE is already active then it will quietly give priority to the object. In other words, the Add-on has precedence on Internet Explorer.

This enables the same experience (almost) to be delivered to any browser on any device with the same html/javascript code.

It is strongly recommended that the MeadCoScriptJS library (https://github.com/MeadCo/MeadCoScriptXJS) is used in conjunction with this library as it provides code (Promises) to assist with working with the significant difference between the synchronous nature of the functions of ScriptX.Add-on (which hide the underlying asynchrony) and the asynchronous nature of javascript AJAX processing.

Requires: meadco-core.js meadco-scriptxprint.js meadco-scriptxprintlicensing.js

View Source meadco-secmgr.js, line 1

Members

# static version

Get the version of this module as a string major.minor.hotfix.build

Properties:
Name Type Description
version string

View Source meadco-secmgr.js, line 126

Methods

# static GetLicenseAsync(resolve, reject)

Get the details of the license using Asynchronous calls to the server. See meadco-scriptxprintlicensing.js for more detail

Parameters:
Name Type Description
resolve function

function to call on successfulk completion

reject function

function to call on failure with reason for failure

View Source meadco-secmgr.js, line 153