By bloid
via celtickane.com
Published: Nov 21 2006 / 00:08
There are already plenty of Ajax libraries available to the public; however, many of them are quite bloated and will slow down your website's performance. I've created an Ajax library, dubbed Feather Ajax, that is designed to be light-weight, customizable, and easy to use.
Tweet
SaveShareSend
Tags: ajax, announcement, javascript



Comments
deBSefyer replied ago:
quote: "There are already plenty of Ajax libraries available to the public; however, many of them are quite bloated and will slow down your website's performance. I've created an Ajax library, , that is designed to be light-weight, customizable, and easy to use"
I believe all of them (other frameworks) say exactly the same thing.
The one thing I don't like about your approach is the (forced) coupling between your client and server side code. Server side doesn't needs to know about client side html element IDs. There many ways this can (potentially) cause very nasty bugs. Plus, (some/most)times it's not only set innerHTML or set value you want to do with your AJAX response...
It's very easy to avoid, just add an extra step:
var ao = new AjaxObject101();
ao.sndReq('get','myajax.php','action=gettext', myAsyncCallback);
function myAsyncCallback(featherResponse) {
FeatherUtils.setInnerHTML('myDiv', featherResponse.getString('myElement'));
// or
FeatherUtils.setValue('myTextBox', featherResponse.getString('myElement'));
// or
FeatherUtils.populateDropDown('mySelect', featherResponse.getAsArray('myElement'));
// etc.
}
Voters For This Link (11)
Voters Against This Link (0)