JavaScript

Methods

Functions

  • DeserializeJSON Converts a JSON (JavaScript Object Notation) string data representation into CFML data, such as a struct or array.
  • EncodeForJavaScript Encodes the given string for safe output in JavaScript to stop Cross Site Scripting attacks.
  • ESAPIEncode Encodes the given string for safe output to stop Cross Site Scripting attacks.
  • IsJson Evaluates whether a string is in valid JSON (JavaScript Object Notation) data interchange format.
  • JSStringFormat Escapes special JavaScript characters, such as single quotation mark, double quotation mark, and newline
  • SerializeJSON Converts CFML data into a JSON (JavaScript Object Notation) representation of the data.
  • ToScript Creates a JavaScript expression that assigns the value of a variable to a JavaScript variable. This function can convert strings, numbers, arrays, structures, and queries to JavaScript syntax that defines equivalent variables and values.

See also