dimitrinicolas / marmottajax Goto Github PK
View Code? Open in Web Editor NEWUnmaintened - Extra simple ajax library
Unmaintened - Extra simple ajax library
How about Apache 2 license?
The project is going to be great, and it would be nice to keep credits of this in any of the "branches", if my understanding of the license is ok:)
Hi guys I love french but plz use English as standard conventional language for comments and error message (and computer-stuff in general). This will help you getting feedbacks and collaboration.
You may add internationalization with a i18n library as optional.
Hi,
It is possible to POST json data?
(A post with 'contentType: application/json' and with json body)
The examples show using a boolean to set the json parameter, but the code types it as a "string" instead of a "boolean".
So when you go to run a call you need to set it as "json:'true'" instead of "json:true" or else it won't work.
The typemap needs to be updated to make "json" type to "boolean", unless its intentional to have to set it as a string saying "true", if thats the case then the examples/documentation would be the place that needs to get updated.
Hi, Dmitry!
Seems, that the lib lacks easy standard then/catch along with implemented success/error aliases.
Maybe add?..
Also, we can use somehow native promises if supported to enable also async/await features. Is it ok, how do u think? This wouldn't obscure keeping simplicity.
Subj
Is there a way to get the response headers?
Hi, Dimitry!
I'm thinking of making a version with very different API (we can discuss it in gitter), based on half of year heavy (and high-load) usage of the Library.
It'd be faster, several times more rubust and conveinent, and, also almost the same size.
One of the main innovation would be modularity and first module is socket.io adapter.
How do you feel with it? I guess, it would be better to name it like Marmott 2 or so. If you want, you can create a new repository, or I can make my own, if you feel OK that I'll point new users to that repo. Anyway, you'll be contributor from the very beginnig.
Subj
Please publish this package to npm.
- [ ]Create tests, using this: http://jasmine.github.io/2.0/ajax.html
(Aren't more effective than those in /Samples
. Just update them.)
when posting something:
marmottajax({
url: "post.php",
method: "post",
parameters: {
image: 8,
by: "click"
}
}).success(function(result) {
// result
}).error(function(message) {
// message
});
the data that actually posted has an extra empty variable like:
?&image=8&by=click
which when received on the server side as {'?': '', image: 8, by: 'click'}
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.