1.0.0 • Published 10 years ago

jquery-net v1.0.0

Weekly downloads
4
License
-
Repository
-
Last release
10 years ago

Net

a lightweight jQuery ajax manager

Getting Started

Download the production version or the development version.

In your web page:

<script src="jquery.js"></script>
<script src="dist/jquery.net.min.js"></script>
<script>
jQuery(function($) {

    $.net.add('ajax1', '/test/ajax1','post', netOpt);
    $.net.get('ajax2', '/test/ajax2', netOpt);
    $.net.post('ajax4','/test/ajax4', netOpt);
    $.net.unaudit('ajax5','/test/ajax5');
    $.net.jsonp('ajax6','http://github.com/test/ajax7');

    $.net.connect('ajax1', {id:111}, function(data) {
    	console.log(data);
    },{
    	1:function(data){alert(data)},
    	normal:function(data){},
    	end:function(data){}
    });

    $.net.connect('ajax1', {id:111}, function(data) {
    	console.log(data);
    });
    $.net.connect('ajax2', function(data) {
    	console.log(data);
    });

    $.net.connect('ajax6');
});
</script>

Documentation

(Coming soon)

Examples

(Coming soon)

Release History

(Nothing yet)