help.sitevision.se always refers to the latest version of Sitevision

Script - JavaScript

JavaScript input field. Created variables are transferred to Velocity.

Skript- javascript

File or write custom code

Here you select one of the following:

  • JavaScript file (.js) - designate a javascript file in the file archive,
  • Custom code - Here you fill in your own code directly in the box.

Toolbar

Verktygslist
  1. Search - Search the custom code. Enter search terms, click enter.
  2. Previous - Jumps to the previous search result.
  3. Next - Jumps to the next search result.
  4. Replace - Enter the words you want to replace. Click enter. Fill in the replacement word and click enter. Now the words that can be replaced are highlighted. For each word you get the answer, Yes, No, Stop.
  5. Replace all - Enter the words you want to replace. Click enter. Fill in the replacement word and click enter. Now all the words have been replaced.
  6. Appearance - Appearance according to different themes. You can choose between Standard, Eclipse, Ambiance, Twilight or Monokai.
  7. Full-screen view - Press the button to change to full screen.

Select script engine

 Server scripts that can run with two different scripting engines. Nashorn is used as default.

  • Rhino - older, used in SiteVision 3.
  • Nashorn - default in SiteVision 4

Help with scripts is not included in the support agreement.

The page published:

Did the information help you?