Moo.ajax: 1.3kb for all your asynchronous needs
<div class="postcontent">http://ajaxian.com/archives/mooajax-13kb-for-all-your-asynchronous-needsValerio Proietti, the creator of Moo.fx, has now created a micro library for Ajax, moo.ajax.
I noticed many of you requested if it would have been possible to use the full prototype, instead of the lite one I provided with the full download of moofx, to use its ajax capabilities along with the effects. Sure you can, but wouldn’t it be cooler if there was a more lightweigt one?
Just to continue my mission in small javascripting, I have arranged this moo.ajax, in just 1.3kb of uncompressed sweetness.
read more for instructions, or download the script. As always, any comments/corrections/suggestions are highly appreciated.
moo.ajax is a very simple ajax class, to be used with prototype.lite from moo.fx. It’s roughly based on the prototype one, so their usage are very similar.
The request
to make any request just call
<div style="border-right: #cccccc 1px solid; padding-right: 5px; border-top: #cccccc 1px solid; padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left: #cccccc 1px solid; width: 98%; padding-top: 4px; border-bottom: #cccccc 1px solid; background-color: #eeeeee;">http://www.agoit.com/Images/OutliningIndicators/None.gifnew ajax(url, options);
页:
[1]