Note: You are currently viewing documentation for Moodle 1.9. Up-to-date documentation for the latest stable version is available here: Hijax.

Hijax

From MoodleDocs
Revision as of 11:06, 30 July 2006 by David Scotson (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Hijax is the name for the application of progressive enhancement to AJAX. This allows the use of AJAX to increase usability and responsiveness without harming accessibility and can, as a side-effect, increase server side code quality.


The process

Implementing Hijax involves two steps (taken from [1]):

  1. First, build an old-fashioned website that uses hyperlinks and forms to pass information to the server. The server returns whole new pages with each request.
  2. Now, use JavaScript to intercept those links and form submissions and pass the information via XMLHttpRequest instead. You can then select which parts of the page need to be updated instead of updating the whole page.

Since Moodle has already completed the first step, and has a strong requirement to be accessible, Hijax is a highly appropriate methodology when enhancing Moodle with AJAX.


See also