├── README.md ├── CHANGELOG.md ├── package.json ├── src ├── ajaxdownloader.min.js └── ajaxdownloader.js ├── bower.json └── LICENSE /README.md: -------------------------------------------------------------------------------- 1 | # jQuery AjaxDownloader 2 | A jQuery Plugin to perform Ajax style downloads 3 | 4 | --- 5 | 6 | Documentation and examples at http://gasparesganga.com/labs/jquery-ajax-downloader/ 7 | -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # Change Log 2 | All notable changes to this project will be documented in this file. 3 | 4 | The format is based on [Keep a Changelog](http://keepachangelog.com/) 5 | and this project adheres to [Semantic Versioning](http://semver.org/). 6 | 7 | 8 | ## v1.1.0 - 2016-11-12 9 | ### Added 10 | - Bower and npm support 11 | - SemVer compliant 12 | - Changelog 13 | 14 | 15 | 16 | ## v1.0 - 2015-05-04 17 | *First public release* 18 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "gasparesganga-jquery-ajax-downloader", 3 | "version": "1.1.0", 4 | "description": "A jQuery Plugin to perform Ajax style downloads", 5 | "homepage": "http://gasparesganga.com/labs/jquery-ajax-downloader/", 6 | "author": "Gaspare Sganga (http://gasparesganga.com)", 7 | "license": "MIT", 8 | "repository": { 9 | "type": "git", 10 | "url": "https://github.com/gasparesganga/jquery-ajax-downloader.git" 11 | }, 12 | "bugs": { 13 | "url": "https://github.com/gasparesganga/jquery-ajax-downloader/issues" 14 | }, 15 | "keywords": [ 16 | "ecosystem:jquery", 17 | "jquery-plugin", 18 | "jquery", 19 | "plugin", 20 | "ajax", 21 | "downloader" 22 | ], 23 | "dependencies": { 24 | "jquery": ">=1.7.0" 25 | } 26 | } -------------------------------------------------------------------------------- /src/ajaxdownloader.min.js: -------------------------------------------------------------------------------- 1 | /*************************************************************************************************** 2 | AjaxDownloader - A jQuery Plugin to perform Ajax style downloads 3 | Author : Gaspare Sganga 4 | Version : 1.1.0 5 | License : MIT 6 | Documentation : http://gasparesganga.com/labs/jquery-ajax-downloader/ 7 | ****************************************************************************************************/ 8 | !function(a){a.AjaxDownloader=function(b){var c=a.extend(!0,{},{data:a.ajaxSetup().data||{},url:a.ajaxSetup().url},b),d=a("
",{action:c.url,method:"POST",target:"AjaxDownloaderIFrame"}).appendTo("body");a.each(c.data,function(b,c){a("",{type:"hidden",name:b,value:"object"==typeof c?JSON.stringify(c):c}).appendTo(d)}),d.submit(),d.remove()},a(document).ready(function(){a("