elo7 / ajax-amd Goto Github PK
View Code? Open in Web Editor NEWAjax.js is a library that helps ajax request. This library uses amd structure.
License: BSD 3-Clause "New" or "Revised" License
Ajax.js is a library that helps ajax request. This library uses amd structure.
License: BSD 3-Clause "New" or "Revised" License
To reproduce:
1 - Config retries and timeout for your request
2 - Config an error and complete callback
3 - Send error like 400 from your server
This case will only execute the complete callback.
Probably the cause of this is in this line: https://github.com/elo7/ajax-amd/blob/master/ajax.js#L115
Give the option to listen to the progress
event of XmlHttpRequest
When post request with content-type json, the body encodes de data, but should stringify the data.
Currently the method is 5 indents deep and is known to have bugs.
After refactoring, .eslintrc.json
"max-depth" rule needs to be updated.
Current complexity is 21, which is really high. After refactoring to less than 15, .eslintrc.json
needs to be updated.
Allow something like ajax.put(...)
or ajax.delete(...)
Example:
<input name='some_name[]' value='1'>
<input name='some_name[]' value='2'>
Result:
{
`some_name[]`: 2
}
Desired:
{
`some_name[]`: [1, 2]
}
There is no hook to treat timed-out requests. Even the complete
callback is not called.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.