1.3.1 • Published 4 years ago
ajax-sender v1.3.1
Ajax Sender (Demo)
Send AJAX requests easily
Doc
- Installation
Simply import AjaxSender into your HTML.
<script src="https://unpkg.com/ajax-sender@1.2.1/AjaxSender.min.js"></script>
- How to use
Create a new AjaxSender
object with the URL as the first parameter :
let ajax = new AjaxSender('https://your.url', options);
// OR using await
let data = await new AjaxSender('https://your.url', {
...,
wait: true
}).asPromise().send();
- Options
{
method: 'GET',
data: { ... },
responseType: 'json',
wait: false, // Wait before sending the request ?
headers: { ... },
progress: response => { ... },
load: response => { ... },
error: response => { ... },
uploadProgress: response => { ... },
uploadLoad: response => { ... }
}
- Methods
See the documentation for the method definitions.
- Example
See this JSFiddle for a working example
Authors
- Zenoo - Initial work - Zenoo.fr
1.3.1
4 years ago
1.2.2
6 years ago
1.2.1
6 years ago
1.2.0
6 years ago
1.1.0
6 years ago
1.0.8
6 years ago
1.0.7
6 years ago
1.0.6
6 years ago
0.1.12
6 years ago
0.1.11
6 years ago
0.1.10
6 years ago
0.1.9
6 years ago
0.1.8
6 years ago
0.1.7
7 years ago
0.1.6
7 years ago
0.1.5
7 years ago
0.1.4
7 years ago
0.1.3
7 years ago
0.1.2
7 years ago
0.1.1
7 years ago
0.1.0
7 years ago