Note:

If you want to create a new page for developers, you should create it on the Moodle Developer Resource site.

Search results

From MoodleDocs
  • The functions mentioned here are deprecated. The correct way to use JavaScript in Moodle is documented on [[JavaScript_guidelines]]. ...you can use the Firefox [[Web developer extension]]: ''Information > View JavaScript''.
    922 bytes (113 words) - 13:38, 14 July 2021
  • ...relevant. See [[Javascript_Modules]] for information on Javascript coding guidelines in Moodle. To view the previous text for this page check the history.
    249 bytes (41 words) - 02:22, 20 June 2017
  • ...or plain HTML must be designed and tested according to aria accessibility guidelines. ...nterface complies with "Level AAA Conformance to Web Content Accessibility Guidelines 2.0"
    2 KB (280 words) - 11:51, 25 June 2022
  • == What is JavaScript? == JavaScript is a scripting language widely used for client-side web development. It is
    3 KB (395 words) - 15:21, 5 December 2022
  • This article will act as a guide for users reporting errors related to JavaScript in Moodle. Generally, when debugging JavaScript errors in Moodle, we will ask for a number of things. This will likely incl
    3 KB (511 words) - 13:22, 14 July 2021
  • [[ Moodle User Interface Guidelines|Moodle User Interface Guidelines]] > '''Form''' Date selection: use javascript selector (how about time?)
    2 KB (307 words) - 14:26, 27 May 2022
  • <h4 class="card-title">Guidelines</h4> * [[Coding|Coding guidelines]]
    5 KB (591 words) - 05:27, 12 January 2023
  • [[ Moodle User Interface Guidelines|Moodle User Interface Guidelines]] > '''Link''' ...are still bookmarkable, can be opened to a new tab, and still work without javascript.
    3 KB (490 words) - 14:31, 27 May 2022
  • Moodle has officially chosen to use the YUI JavaScript library and it is encouraged to use that wherever possible. That being said You will also need to decide where to load the JavaScript. Moodle can load JavaScript into either the pages head, or at the bottom of the page (footer). Loading
    6 KB (1,054 words) - 20:34, 14 July 2021
  • This page forms part of the [[Security|Moodle security guidelines]]. ...splaying an advert from <nowiki>http://makemerich.com/</nowiki>. Then, and JavaScript code in the advert cannot access anything on your page.
    7 KB (1,142 words) - 07:27, 6 May 2022
  • ...ing, Javascript loaders, Javascript Build Tools, Javascript Combo Loading, Javascript Accessible Widget Libraries, Templates for Renderers === Prechecking against Moodle coding guidelines from your command line ===
    4 KB (603 words) - 15:11, 10 August 2021
  • == JavaScript == JavaScript is included in different ways now and will need to be migrated, see the PHP
    3 KB (432 words) - 13:01, 4 January 2023
  • [[ Moodle User Interface Guidelines|Moodle User Interface Guidelines]] > '''Radio button''' ...itation directly, but you can use checkboxes and then script it either in Javascript or server side, in PHP.
    3 KB (477 words) - 14:44, 27 May 2022
  • [[ Moodle User Interface Guidelines|Moodle User Interface Guidelines]] > '''Wizard''' ...be undone or is in some other way potentially dangerous, consider adding a javascript warning dialog confirming the user wants to continue.
    6 KB (1,046 words) - 14:44, 27 May 2022
  • [[ Moodle User Interface Guidelines|Moodle User Interface Guidelines]] > '''Checkbox''' ...not support this limitation directly, but it has to be scripted either in Javascript or server side, in PHP.
    4 KB (645 words) - 14:44, 27 May 2022
  • This page is the top-level page describing Moodle's coding guidelines. It's the place to start if you want to know how to write code for Moodle. ...portant that all developers strictly follow our [[Security|Moodle security guidelines]].
    7 KB (1,101 words) - 13:20, 31 May 2022
  • [[ Moodle User Interface Guidelines|Moodle User Interface Guidelines]] > '''Big Select List''' * Some users may not have javascript support on, so it cannot be depended on
    3 KB (566 words) - 14:44, 27 May 2022
  • [[ Moodle User Interface Guidelines|Moodle User Interface Guidelines]] > '''User Data Always (Always) Safe''' ...n dialogs (such as preventing accidental leaving of an unsaved form with a javascript dialog) are frustrating to users. In some situations it may be smart to all
    8 KB (1,318 words) - 14:55, 27 May 2022
  • This page forms part of the [[Security|Moodle security guidelines]]. ...For example, by using a cross-site scripting vulnerability to include the JavaScript window.close() in a forum post.
    2 KB (281 words) - 07:27, 6 May 2022
  • # the forum code does not match the current coding guidelines. ...is one of the oldest components in Moodle and precedes many of the current guidelines and best practices that we currently follow. As a result, much of the code
    6 KB (964 words) - 07:53, 20 May 2014
  • ...g forces behind updating the forms library are a desire to create forms in JavaScript, and to make the current mforms work in php 7. Current tests show that php ...nto the text. So alterations will be made to make these elements work with JavaScript.
    11 KB (1,719 words) - 08:26, 15 July 2021
  • This page also summarises all the key guidelines. ...s from teacher roles because even basic SCORM packages consist of html and javascript which needs to use user session.
    11 KB (1,686 words) - 13:20, 31 May 2022
  • The Moodle JavaScript coding style. ...eptions to the general Moodle [[Coding_style|Coding style]] which apply to JavaScript.
    20 KB (2,680 words) - 04:17, 4 October 2021
  • *** Policy for naming layout and CSS selectors should go into the coding guidelines as the consistency there is crucial. ** Totara has developed standard UI widgets, guidelines/style guide
    6 KB (999 words) - 13:17, 9 August 2021
  • [[ Moodle User Interface Guidelines|Moodle User Interface Guidelines]] > '''Major usability issues in Moodle''' == Making Moodle more fluid with javascript/YUI controls/AJAX ==
    8 KB (1,254 words) - 14:55, 27 May 2022
  • 1. Read All Coding guidelines. - javascript
    3 KB (491 words) - 13:50, 24 June 2022
  • It is written in JavaScript itself, and written as a [http://nodejs.org Node.JS] module which can be in Shifter takes your source JavaScript file(s), along with some meta-data, and wraps it all together into a built
    11 KB (1,725 words) - 14:18, 5 December 2022
  • ==JavaScript and CSS required by your plugin== If your plugin needs custom CSS of JavaScript, you can just add files called styles.css and/or script.js in the plugin fo
    15 KB (2,478 words) - 20:27, 14 July 2021
  • ...r simulation tools like Selenium, which interacts with browsers and allows JavaScript events simulation. === Javascript ===
    12 KB (1,862 words) - 11:01, 24 March 2023
  • Plugin's Javascript modules written using AMD or ES6 format. (AMD, supported since Moodle 2.9, * [[Javascript Modules]]
    9 KB (1,339 words) - 12:08, 28 June 2022
  • This document describes style guidelines for developers working on or with Moodle code. It talks purely about the me ...g/ LESS] works like CSS with some extra features. It should follow the CSS guidelines.
    12 KB (1,562 words) - 08:26, 15 July 2021
  • ...d to upgrade your icons by adding some SVG files. Use the following design guidelines to produce an icon that plays well with the core ones. ...for advanced devs because you need to implement the mustache handlers for javascript as well as the php class. The icon_system_fontawesome is a working example
    8 KB (1,091 words) - 15:58, 29 January 2024
  • ...way for developers and themers to deal with these issues (can go in coding guidelines) ==Proposed solution 3 - JavaScript ==
    11 KB (1,911 words) - 05:19, 7 May 2024
  • ...ere are no exact matches to this kind of instructional overlay in the WCAG guidelines. The overlay is a cross between a Modal Dialog, and a non-modal Dialog. Be These are JavaScript libraries which take configuration (usually JSON) and produce tours to disp
    6 KB (877 words) - 10:58, 12 April 2017
  • * Moodle forms can be displayed in JavaScript using 'fragments'. ===Adding Javascript===
    15 KB (2,158 words) - 20:24, 14 July 2021
  • ...ript_Modules|JavaScript modules]] your question type needs. (Old YUI-style JavaScript in yui/ or module.js would still work, but is not recommended.) #If the question type uses complex CSS or JavaScript, repeat this testing in different web browsers.
    17 KB (2,702 words) - 15:01, 20 October 2023
  • ...e rendered both on the server side in PHP as well as on the client side in JavaScript. Themes can override the default templates. Moodle uses [https://mustache.g == Rendering in JavaScript ==
    39 KB (5,854 words) - 14:08, 9 June 2022
  • ...lines the exceptions to the [[Coding style]] and [[Javascript/Coding Style|JavaScript Coding Style]] which apply to the Moodle App and also includes rules for ot Note that much of the existing code may not follow all of these guidelines — we continue to upgrade this code when we see it.
    13 KB (1,686 words) - 07:27, 6 May 2022
  • | Javascript modules in Moodle 2.9 and higher * Q: Are there any guidelines / rules around when to create more than one commit within a tracker item? I
    18 KB (2,729 words) - 13:22, 14 July 2021
  • '''Project outcome: [[Moodle_User_Interface_Guidelines|Moodle User Interface Guidelines]]''' This project will create a a lightweight Human Interface Guidelines style documentation for Moodle, as part of a review of Moodle's overall use
    35 KB (5,513 words) - 13:53, 29 October 2010
  • Physically, a Moodle plugin is just a folder of PHP scripts (and CSS, JavaScript, etc. if necessary). Moodle core communicates with the plugin by looking fo '''JavaScript library:'''
    14 KB (2,271 words) - 18:27, 22 August 2018
  • * Items to usability test (and from these, potential UI guidelines) * UI guidelines
    32 KB (5,118 words) - 19:49, 8 August 2009
  • ** remove the hack to load css via javascript to hide the repaginating form ...ylesheet shows the repaginate form on the page. This needs to be hidden in javascript IN HEAD so that the code to change the CSS is loaded before the page is ren
    41 KB (6,818 words) - 20:20, 14 July 2021
  • ...ease version in version.php after any change in /db/ folder, any change in javascript code, any new auto-loaded class, any new setting and also after any change ...nd all caches reset. Bump up version after changing /db/, /lang/, theme or JavaScript.
    18 KB (2,994 words) - 14:05, 24 June 2022
  • * Client-side JavaScript improvements have been made, mostly successful so far ** There are new guidelines for creating new icons including standard colours to match standard icons
    30 KB (5,089 words) - 13:22, 14 July 2021
  • The situation of having a single JavaScript driven element was considered but even then it is better to style only clas ...nly be given to elements and HTML nodes that need to be interacted with by JavaScript.
    23 KB (3,616 words) - 08:22, 15 July 2021
  • It is also possible to add JavaScript actions (component_action objects) to an action. These attach a JS listener Attached JavaScript actions get initialised when the properties for the action are retrieved so
    33 KB (4,950 words) - 08:08, 15 July 2021
  • This document describes '''style''' guidelines for developers working on or with Moodle code. It talks purely about the me Note that much of the existing Moodle code may not follow all of these guidelines - we continue to upgrade this code when we see it.
    54 KB (7,921 words) - 03:51, 11 April 2022
  • All parts of the interface should be consistent. We need to have a set of guidelines and core frameworks to better restrict what developers are allowed to do, w * MDL-14542 Modification to improve javascript and css header insertion for blocks, modules and filters
    14 KB (2,182 words) - 16:23, 25 May 2022
  • === [[HTML_Guidelines|HTML Guidelines]] === * Activity module authors should attempt to follow guidelines in pages to achieve semantic consistency
    103 KB (15,010 words) - 13:23, 14 July 2021
  • * MOBILE-1084 - JavaScript is Shows in the course * MOBILE-818 - Decide the development process, coding guidelines for the new team
    13 KB (1,992 words) - 11:16, 1 June 2022
  • ...an) other compiled languages such as C++, but '''many times faster''' than JavaScript. ...development and is mainly kept to correspond to the dates, objectives and guidelines mentioned in the GSoC program. The application with basic functionality can
    15 KB (2,540 words) - 09:46, 3 April 2009
  • * html files possibly containing images, css, applets and javascript * javascript that loads media via relative links (eg imagine an auto-generated slideshow
    33 KB (5,034 words) - 20:21, 14 July 2021
  • ..., CiBot is not checking all file types (it happens, for instance, with the Javascript files). * the icons abide by our [https://docs.moodle.org/dev/Moodle_icons icon guidelines] with regards to size, design and format
    23 KB (3,775 words) - 07:27, 6 May 2022