Module: hintMessages

Children

Description

Function: createErrorNotification

createErrorNotification()

Function: createWaitingNotification

Create a waiting notification with a informative message for the waiting user.

createWaitingNotification(info, id)
Arguments:
  • info, (String()) – a message for the user

  • id, (String()) – optional, the id of the message div. Default is empty

Return HTMLElement:

A div with class caosdb-preview-waiting-notification.

Function: removeAllWaitingNotifications

Remove all waiting notifications from an element.

removeAllWaitingNotifications(elem)
Arguments:
  • elem (HTMLElement()) – Remove all waiting notifications from an element.

Return HTMLElement:

The parameter elem.

Function: postXml

Post an xml document to basepath/Entity

postXml()
Arguments:
  • postXml() – XML document

  • postXml() – string

  • postXml() – string

  • postXml() – integer (in milliseconds)

Return postXml():

Promise object

Function: xml2str

Serialize an xml document into plain string.

xml2str()
Arguments:
  • xml2str() – Serialize an xml document into plain string.

Return xml2str():

string representation of xml

Function: load_config

Load a json configuration.

If the file cannot be found, an empty array is returned.

load_config()
Arguments:
  • load_config() – The filename of the configuration file residing in conf/.

Return load_config():

object containing the configuration

Function: str2xml

Convert a string into an xml document.

str2xml()
Arguments:
  • str2xml() – a string representation of an xml document.

Return str2xml():

an xml document.

Function: asyncXslt

Asynchronously transform an xml into html via xslt.

asyncXslt()
Arguments:
  • asyncXslt() – resolves to an input xml document.

  • asyncXslt() – resolves to a xsl script.

  • asyncXslt() – resolves to parameters for the xsl script.

Return asyncXslt():

A promise which resolves to a generated HTML document.

Function: xslt

transform a xml into html via xslt

xslt()
Arguments:
  • xslt() – the input xml document

  • xslt() – the transformation script

  • xslt() – xsl parameter to be set (optionally).

Return xslt():

html

Function: getXSLScriptClone

TODO

getXSLScriptClone()

Function: injectTemplate

Add a template rule to a XSL style sheet.

The original document is cloned (copy-on-change) before the template rule is appended.

injectTemplate(orig_xsl, templateStr)
Arguments:
  • orig_xsl (XMLDocument()) – the original xsl style sheet

  • templateStr (string()) – the new template rule (an xml string)

Return XMLDocument:

new xsl style sheet with one more rule.

Function: insertParam

TODO

insertParam()

Function: initOnDocumentReady

Initialize all the submodules.

initOnDocumentReady()

Member: hintMessages:

Member: id:

Member: type:

Member: contentType:

Member: url:

Member: processData:

Member: data:

Member: dataType:

Member: timeout:

Member: statusCode:

Member: url:

Member: dataType:

Member: result:

Member: result:

Member: user_management:

Member: type:

Member: url:

Member: dataType:

Member: data:

Member: modal:

Member: msg_text:

Member: msg_text:

Member: msg_text:

Member: init:

Member: set_new_password:

Member: get_change_password_form:

Member: caosdb_modules: