If your on the pear-dev mailing list you should have already seen the post but i’ll blog about it here as well hoping to get some feedback.
A proposal was made on pepr for an HTML_AJAX library in PEAR. I was less then happy with the implementation and since once a package is in PEAR its hard to replace I thought i’d step up and provide a package that I think is ready for widespread use. I wasn’t really considering doing this before this came up, since its a lot of work, and JPSpan has been working fine for me (thats not to say I wouldn’t do some things differently). So here is an alpha release of my HTML_AJAX library.
Anyhow im actively looking for someone to come aboard as a co-maintainer of this package, if your interested let me know.
The current feature set is:
- Ability to register multiple classes on one page
- POST is used for sending requests
Next Steps are:
- At least switch to a smushed json.js (3k instead of 10k)
- Clean up HTML_AJAX.js, I pull in a bunch of classes from JPSpan and I think they can be made smaller through refactoring
- Expose onLoad etc events
- Complete Async Callback support
- Create an addon api that allows for, proxyless operation, direct content replacement from results
In the PHP Code:
- Pearify JSON.php (this currently has a pepr proposal in the draft state, the author said he will try to move it forward, but who knows if he will have time)
- Write code to deliver the js files through php with the proper caching headers, so you don’t have to copy the js files around unless you want too