Javascript

Foswiki will work without Javascript enabled in the browser:
  • When performing read-only actions, Eg. view, rdiff
  • If {Validation}{Method} is set to anything other than strikeone in configure, write/update actions such as edit and save will work also

User experience is significantly improved if it is enabled.

Foswiki Javascript support includes a number of base Javascript files, attached to this topic, that provide support for features in the basic screens, and are used by most skins. These files are automatically included as required by skins.

These files are gradually being phased out in favour of JQueryPlugin which uses the industry-standard JQuery framework to provide high quality user interface components.

You can use Javascript in the body of topics, but it is highly recommended to use the %ADDTOZONE{"script" ...}% macro if you do so. Bear in mind that inline Javascript represents a significant security risk to Foswiki sites, and sites vulnerable to hackers should seriously consider installing the Foswiki:Extensions.SafeWikiPlugin to control it.

Related Topics: SkinTemplates, Skins, ADDTOZONE
Topic revision: r1 - 22 Jan 2018, UnknownUser
This site is powered by FoswikiCopyright © by the contributing authors. All material on this site is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki? Send feedback