AJAX: Difference between revisions
(Created page with "'''AJAX (Asynchronous Javascript and XML)''' is a modern web design technique that allows for more interactivity by making webpages that fetch data in the background and alter th...") |
Helen Foster (talk | contribs) (content copied from 19 wiki) |
||
Line 3: | Line 3: | ||
== Ajax in Moodle == | == Ajax in Moodle == | ||
As of July 2006, Moodle has adopted the [[ | === YUI framework === | ||
As of July 2006, Moodle has adopted the [[YUI|Yahoo! user interface library]] and most future work in this area will build upon that foundation. | |||
There are several current projects that make use of these technologies e.g.: | There are several current projects that make use of these technologies e.g.: | ||
Line 9: | Line 11: | ||
* [[Chameleon]] theme | * [[Chameleon]] theme | ||
* [[Student projects/AJAX course format]] | * [[Student projects/AJAX course format]] | ||
=== AJAX renderers === | |||
As of Moodle 2.0, AJAX output can be generated by creating an ajax renderer class named something like mod_forum_renderer_ajax in the same way and in the same file as the normal renderer. If a script is marked as being an AJAX script by having this line placed at the top of the file (before any other code) | |||
define('AJAX_SCRIPT', true); | |||
then the AJAX renderer will be used in place of the main one for all components if it exists. | |||
== See also == | == See also == | ||
Line 16: | Line 26: | ||
* [[Unobtrusive javascript]] | * [[Unobtrusive javascript]] | ||
* [[Hijax]] | * [[Hijax]] | ||
* [[ | * [[Firebug#Debugging_AJAX_with_Firebug|Debugging AJAX with Firebug]] | ||
Revision as of 14:28, 5 July 2011
AJAX (Asynchronous Javascript and XML) is a modern web design technique that allows for more interactivity by making webpages that fetch data in the background and alter themselves without reloading. This makes the website feel much more like an application. AJAX is a new way of working with existing technologies (including HTML, Javascript, CSS and the XMLHttpRequest object amongst others) rather than a new piece of technology in itself.
Ajax in Moodle
YUI framework
As of July 2006, Moodle has adopted the Yahoo! user interface library and most future work in this area will build upon that foundation.
There are several current projects that make use of these technologies e.g.:
AJAX renderers
As of Moodle 2.0, AJAX output can be generated by creating an ajax renderer class named something like mod_forum_renderer_ajax in the same way and in the same file as the normal renderer. If a script is marked as being an AJAX script by having this line placed at the top of the file (before any other code)
define('AJAX_SCRIPT', true);
then the AJAX renderer will be used in place of the main one for all components if it exists.
See also
- Ajax: A New Approach to Web Applications, the original Ajax article by Adaptive Path
- AJAX: Getting Started article on developer.mozilla.org
- 10 places you must use AJAX by Adam Bosworth
- Considering Ajax, Part 1: Cut through the hype from IBM developerworks
- Wikipedia article on AJAX
- How to Make Your AJAX Applications Accessible: 40 Tutorials and Articles
- AJAX loading icon generator