All Projects → likerRr → jq-ajax-progress

likerRr / jq-ajax-progress

Licence: MIT license
jQuery plugin that adds support of `progress` promise

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects

Projects that are alternatives of or similar to jq-ajax-progress

Infinite Scroll
📜 Automatically add next page
Stars: ✭ 7,006 (+11774.58%)
Mutual labels:  jquery-plugin, ajax
Bpage
Based on bootstrap style, static page jump can also be asynchronous page processing pagination plugin
Stars: ✭ 96 (+62.71%)
Mutual labels:  jquery-plugin, ajax
Uploader
A lightweight and very configurable jQuery plugin for file uploading using ajax(a sync); includes support for queues, progress tracking and drag and drop.
Stars: ✭ 1,042 (+1666.1%)
Mutual labels:  jquery-plugin, ajax
Tokenize2
Tokenize2 is a plugin which allows your users to select multiple items from a predefined list or ajax, using autocompletion as they type to find each item. You may have seen a similar type of text entry when filling in the recipients field sending messages on facebook or tags on tumblr.
Stars: ✭ 74 (+25.42%)
Mutual labels:  jquery-plugin, ajax
Restclient
🦄 Simple HTTP and REST client for Unity based on Promises, also supports Callbacks! 🎮
Stars: ✭ 675 (+1044.07%)
Mutual labels:  promises, ajax
Push State
Turn static web sites into dynamic web apps.
Stars: ✭ 16 (-72.88%)
Mutual labels:  jquery-plugin, ajax
Tag Handler
Tag Handler is a jQuery plugin used for managing tag-type metadata.
Stars: ✭ 76 (+28.81%)
Mutual labels:  jquery-plugin, ajax
Form
jQuery Form Plugin
Stars: ✭ 5,122 (+8581.36%)
Mutual labels:  jquery-plugin, ajax
Ajax Live Search
AJAX Live Search is a PHP search form that similar to Google Autocomplete feature displays the result as you type.
Stars: ✭ 238 (+303.39%)
Mutual labels:  jquery-plugin, ajax
Bs grid
Bootstrap Datagrid
Stars: ✭ 184 (+211.86%)
Mutual labels:  jquery-plugin, ajax
Jquery Confirm
A multipurpose plugin for alert, confirm & dialog, with extended features.
Stars: ✭ 1,776 (+2910.17%)
Mutual labels:  jquery-plugin, ajax
Bliss
Blissful JavaScript
Stars: ✭ 2,352 (+3886.44%)
Mutual labels:  promises, ajax
Fetch Plus
🐕 Fetch+ is a convenient Fetch API replacement with first-class middleware support.
Stars: ✭ 116 (+96.61%)
Mutual labels:  promises, ajax
ajxnetcore
Its an innovative method to turn an ASP.NET Core Application Into Single Page Application, While enhancing the Software performance both on server and client side.
Stars: ✭ 31 (-47.46%)
Mutual labels:  jquery-plugin, ajax
flush-promises
Flush all queued resolved promise handlers
Stars: ✭ 172 (+191.53%)
Mutual labels:  promises
iadmin
A simple backend admin panel for basic CRUD operations (built using php,mysql,bootstrap and ajax).
Stars: ✭ 28 (-52.54%)
Mutual labels:  ajax
sim-tree
一个操作简单的基于jquery的树展示插件,支持异步展示子节点
Stars: ✭ 22 (-62.71%)
Mutual labels:  jquery-plugin
jquery.selectlistactions.js
jQuery.SelectListActions plugin allows you to perform several actions with HTML Select lists
Stars: ✭ 35 (-40.68%)
Mutual labels:  jquery-plugin
provejs-jquery
An event based jQuery plugin for client-side validation of html forms.
Stars: ✭ 76 (+28.81%)
Mutual labels:  jquery-plugin
proposal-symbol-thenable
gus.host/proposal-symbol-thenable
Stars: ✭ 18 (-69.49%)
Mutual labels:  promises

jQuery Ajax Progress

Lightweight jQuery plugin that adds support of progress and uploadProgress promises to $.ajax()

Installation

npm

npm install jq-ajax-progress

manually

git clone [email protected]:likerRr/jq-ajax-progress.git

How to use

Include src/jq-ajax-progress.min.js inside your html after jQuery script

Basic usage

$.ajax(url, {
    progress: function(e) {
      // track downloading
    },
    uploadProgress: function(e) {
      // track uploading
      // if (e.lengthComputable) {
      //   var completedPercentage = Math.round((e.loaded * 100) / e.total);
      //   console.log(completedPercentage);
      //}
    }
  })

Extended usage

When you have to send a chunked data to client in some cases it would be good to track what part have just received. For this purposes use boolean option chunking (false by default). If it's set as true, then the second parameter in callback function will be a chunk part.

By default all chunked response contains whole text response that already received and you should manually cut it if you need to do something with parts. One of a possible case when you send big text or media response from server to client and you don't want your client wait for whole response.

Keep in mind, that under the hood whole response is being cut from the beginning (from zero index) until last part's occurrence, so big amount of data (theoretically) may cause a performance troubles. But... just keep in mind :)

$.ajax(url, {
    chunking: true,
    progress: function(e, part) {
      console.log(part);
    }
  });

Build

Install node

Run npm install && npm run build

This will minify library and put it inside src folder

MIT LICENSE

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].