JavaScript/AJAX page callback
sun - April 26, 2008 - 19:26
JavaScript callback handler is an interim solution for high-performance querying of contents including (but not limited to) AHAH, AJAX, JSON, XML, etc.
Note that this module does nothing on itself.
By copying the included js.php into Drupal's root directory, setting up clean URLs, and adding a Apache RewriteRule (see README for full installation instructions) to the .htaccess file, JavaScript/ActionScript code is able to retrieve information from Drupal at lightning speed.
Apache benchmarks speak for itself:
Using index.php as usual:
ab -n20 -c1 http://example.com/index.php?q=js/mymodule/callback
Requests per second: 2.24 [#/sec] (mean)
Time per request: 446.846 [ms] (mean)Using js.php:
ab -n20 -c1 http://example.com/js.php?q=js/mymodule/callback
Requests per second: 16.84 [#/sec] (mean)
Time per request: 59.371 [ms] (mean)Dependencies
- Clean URLs.
- A web server supporting RewriteRules (such as Apache).
Installation
- Please see current README.
Integration
Contributed (third-party) modules that integrate with this:
Credits
Authors and current maintainers:
This project has been sponsored by:
- UNLEASHED MIND
- Specialized in consulting and development of Drupal powered sites, our services include installation, development, theming, customization, and hosting to get you started.
Releases
| Development snapshots | Date | Size | Links | Status | |
|---|---|---|---|---|---|
| 6.x-2.x-dev | 2009-Jul-23 | 10.75 KB | Download · Release notes | Development snapshot | |
