Thank you for your feedback.
Form temporarily unavailable. Please try again or contact to submit your comments.
  • London
  • Kingston
  • Jakarta
  • Istanbul
  • Helsinki
  • Geneva
  • Store

MIDSystem methods

MIDSystem methods

MIDSystem variables (referred to by the variable name ms.) provide a variety of methods to get information about the MID Server.

Method summary Description
log(String message) Logs the given message with a standard prefix to indicate that the message was generated by JavaScript.
getConfigParameter(String parameter name) Returns the value of the named configuration parameter.
include(String script include) Include the MID Server script include with the given name into the current context.
getName() Returns the name of the MID Server.
getSysID() Returns the sys_id of the MID Server.
toJavaScript(Object) Converts the given Java object into the equivalent JavaScript object.

This example writes a message to the log:

ms.log('Attempting to log in with user: ' + this.getParameter('user'));

Changes to site functionality will be made starting around 6am on January 21st (Pacific Time) and lasting approximately 6 hours.  The site may be intermittently unavailable.