Class JavaScriptHelper


  • public class JavaScriptHelper
    extends java.lang.Object
    This class has some of the most commonly needed JavaScript utilities. All of the methods on this class are public static so that no instance is required.
    Since:
    MicroStrategy Web 7.3.1 or earlier
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String encodeJSCode​(java.lang.String jsCode)
      Delimits the Single Quote(') with a back slash single quote(\') for JavaScript It accepts the string to be encoded and returns the encoded string.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • JavaScriptHelper

        public JavaScriptHelper()
    • Method Detail

      • encodeJSCode

        public static java.lang.String encodeJSCode​(java.lang.String jsCode)
        Delimits the Single Quote(') with a back slash single quote(\') for JavaScript It accepts the string to be encoded and returns the encoded string.
        Parameters:
        jsCode - String value to be encoded
        Returns:
        the encoded string