Git Product home page Git Product logo

marmottajax's People

Contributors

dimitrinicolas avatar dlid avatar gitter-badger avatar houd1ni avatar hylke1982 avatar quadrifoglio avatar tylercollier avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

marmottajax's Issues

A new version

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.

Use english + optional i18n

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.

Small issue with setting the json paramater

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.

ROADMAP

- [ ]Create tests, using this: http://jasmine.github.io/2.0/ajax.html
(Aren't more effective than those in /Samples. Just update them.)

  • How about gitter?
  • Cache handling
  • Improve docs, make them on different pages, with useful structure
  • Multifile upload
  • Data + files boundle
  • Run some callback just before
  • Run some callback while a part is loaded
  • Run some callback if some timeout expired
  • Code review, refactor, improve minify-ready
  • Adapters for different input data. E.g. jQuery's formats of $.ajax and, maybe aliases-shortcuts
  • Different builds for different purposes
  • WebSockets adaptation
  • Show it to the World

glitch in formData when posting

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'}

The license proposal

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:)

How about Promise?

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.

post json data

Hi,
It is possible to POST json data?
(A post with 'contentType: application/json' and with json body)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.