Helper module to load and add JavasScript and CSS data for Ajax-loaded content.
There will be no Drupal 7 version as the functionality provided by AJax load is built into Drupal 7 core's Ajax API. See #1060340: Port AJAX load module to drupal 7..
There is an experimental D6 2.x branch that depends on CTools.
When loading new content via AJAX, there is the potential need to load CSS and Javascript files and data not already available on the page. Ajax Load is a helper module designed to handle this task. It should only be installed for use with another module.
Ajax Load was written to accompany a patch that added AJAX loading to the Views module. When enabled, Ajax Load will ensure that any needed JS and CSS files are loaded along with dynamically loaded views.
Maintained by markus_petrux and nedjo.
Developer usage
To see a full working example, download the dev version, which includes an ajax_load_example module.
Ajax Load implements a drupal_alter()
hook, hook_ajax_data_alter()
.
Ajax Load expects an object or array that is about to be sent in JSON format. The object should have a __callbacks
property with Javascript callbacks that the JSON data are to be fed into.