Translations of this page:


void library(string id)

The function library() embeds the JavaScript- or (if defined on the Server) PHP-Library including the defined identifier id in the questionnaire-site and makes it available for scripts.

  • id
    identifier of the embedded library
    • 'jQuery' – jQuery, comprehensive JavaScript Standard-Library
    • 'Velocity' – Velocity.js, Animation of HTML-Elements
    • 'SCEditor' – SCEditor, is able to extend string gadgets with a WYSIWYG Editor, so participants can format their inputs.
    • 'ChartJS' – ChartsJS, generates dynamic diagramms through JavaScript
    • 'highcharts' – Highcharts, generates dynamic diagramms through JavaScript (this library is not available on every Server). In addition it's possible to specify a Highcharts-module after a colon inside the id, e.g. 'highcharts:solid-gauge'.


Server-Administrators can define further libraries inside the file /system/config.php. To e.g. embed the JavaScript-file plugins/SomeScript/somescript.js with the identifier SomeScript, please add at the end of the configuration:

  'libraries' => array(
    'SomeScript' => 'plugins/SomeScript/somescript.js'
en/create/functions/library.txt · Last modified: 26.09.2020 13:51 by sophia.schauer
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
Driven by DokuWiki