Chapter 1. Combining Moodle and JavaScript
In this chapter, we will cover:
Creating a new Moodle PHP page
Loading a JavaScript file
Loading a JavaScript file in
<head>
Generating a JavaScript function call from PHP
Passing variables from PHP to JavaScript
Ensuring compliance with XHTML Strict
Retrieving language strings from Moodle