Using YUI in Blocks?

Re: Using YUI in Blocks?

by Vy-Shane Sin Fat -
Number of replies: 0
Regarding the check for ajaxenabled() in require_js().

If we don't respect the $CFG->enableajax and $USER->ajax settings, we'll end up with two issues:

1) Inconsistency. For example, an admin turns off AJAX - some parts of Moodle respects this, while other parts don't.

2) Moodle should ideally work even with JavaScript turned off. We should promote the use of AJAX in a transparent way. If JavaScript is on, then the UI is changed by JS to enable the AJAX magic to happen. Otherwise, the UI should still work untouched.