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 - 21 Jul 2015, ProjectContributor - This page was cached on 16 May 2019 - 19:26.

THE UNIVERSITY OF UTAHSPENCER S. ECCLES HEALTH SCIENCES LIBRARY
10 N. 1900 E. SALT LAKE CITY, UT 84112 • 801.581.7535
Ideas, requests, problems regarding Eccles Health Sciences Library wiki? Send feedback