James - take a quick look at the Moodle AJAX docs: https://docs.moodle.org/dev/AJAX
If you still have questions, feel free to post here further.
James - take a quick look at the Moodle AJAX docs: https://docs.moodle.org/dev/AJAX
If you still have questions, feel free to post here further.