0.0.6 • Published 9 years ago

amplify-deferred v0.0.6

Weekly downloads
3
License
MIT
Repository
github
Last release
9 years ago

amplify-deferred

Adding jQuery Deferred support to the amplify.request component as a Node.js module

All credit for the jQuery plugin goes to elijahmanor.

In order to install it just do: npm install amplify-deferred --save

Once you have included this plugin a promise will be returned allowing you to use $.when, .done(), .fail(), and the other various jQuery Deferred methods.

amplify.request( "/api/Account/Login", { userName: "laurentiu", password: "|\/|y s3cr3t!!" } )
	.done(function( data, status ) {
        console.log( data );
        console.log( status );
	}).fail(function( data, status ) {
		console.log( "Something went wrong !!" );
	});