Skip to content

Client-side Scripting

Overview

Informat client-side scripting uses javascript as the scripting language. Scripting in Informat can implement advanced features that cannot be configured. You can use system-provided functions by accessing the informat object in scripts.

Informat Client Usage Instructions

    1. Client-side scripts are completely based on the browser's JS environment. Therefore, when writing scripts for different browser versions, you need to be aware of the browser's JS language support. For better compatibility, try to use ES5 writing conventions. You can also use Babel online to transpile your scripts.
    1. Client-side scripts can use all JS capabilities available in the browser, such as: DOM node operations, setTimeout, setInterval, Promise, and other browser features.

Supplementary Notes

  • When developing scripts using VsCode or WebStorm, download informat.client.d.ts to obtain the function description file to resolve code error issues.

  • After importing the downloaded informat.client.d.ts into the editor, if you still receive errors about informat calls, you can create an empty jsconfig.json file in the project root directory and restart the editor. The file should contain an empty object:

    json
    {}