Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

glitch in formData when posting #25

Closed
am05mhz opened this issue Mar 14, 2017 · 0 comments
Closed

glitch in formData when posting #25

am05mhz opened this issue Mar 14, 2017 · 0 comments

Comments

@am05mhz
Copy link

am05mhz commented Mar 14, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant