2017 © Pedro Peláez
 

library jquery-ajax-progress

Simple patch that adds a 'progress' callback to jquery Ajax calls

image

ilopx/jquery-ajax-progress

Simple patch that adds a 'progress' callback to jquery Ajax calls

  • Sunday, August 23, 2015
  • by ilopX
  • Repository
  • 2 Watchers
  • 3 Stars
  • 8 Installations
  • JavaScript
  • 0 Dependents
  • 0 Suggesters
  • 71 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Jquery Ajax Progresss

A simple patch to jQuery that will call a 'progress' callback, using the XHR.onProgress event, (*1)

Video demo

Video Demo, (*2)

Install and use

a. CDN

jquery.ajax-progress.js or jquery.ajax-progress.min.js, (*3)

Include the script on your page:, (*4)

<script src="https://cdn.rawgit.com/ilopX/jquery-ajax-progress/master/dist/jquery.ajax-progress.js"></script>

or, (*5)

<script src="https://cdn.rawgit.com/ilopX/jquery-ajax-progress/master/dist/jquery.ajax-progress.min.js"></script>

b. Install

bower install ilopx-jquery-ajax-progress

``` composer require ilopx/jquery-ajax-progress, (*6)


## Use simple template script [**template.js**](https://github.com/ilopX/jquery-ajax-progress/blob/master/dist/template.js) ```javascript $(function() { $.ajax({ method: 'GET', url: '', // TODO: add url data: { // TODO: add data }, success: function() { // TODO add message all ok }, error: function() { // TODO add message error }, progress: function(e) { if(e.lengthComputable) { var progress = e.loaded / e.total * 100; var content = e.srcElement.responseText; } else { // TODO add message error 'Content Length not reported!'; } } }); });

Notes

The Versions

23/08 2015

dev-master

9999999-dev

Simple patch that adds a 'progress' callback to jquery Ajax calls

  Sources   Download

MIT

The Requires

  • bower-asset/jquery 2.1.*

 

The Development Requires

  • bower-asset/bootstrap 3.*

by Avatar ilopX
by englercj
by snoj
by RaphaelDDL

23/08 2015

1.2.1

1.2.1.0

Simple patch that adds a 'progress' callback to jquery Ajax calls

  Sources   Download

MIT

The Requires

  • bower-asset/jquery 2.1.*

 

The Development Requires

  • bower-asset/bootstrap 3.*

by Avatar ilopX
by englercj
by snoj
by RaphaelDDL

23/08 2015

1.0

1.0.0.0

Simple patch that adds a 'progress' callback to jquery Ajax calls

  Sources   Download

MIT

by Avatar ilopX
by englercj