Coder Social home page Coder Social logo

formchimp's People

Contributors

bryant1410 avatar fabioquarantini 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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

formchimp's Issues

Multiple sign-up forms on one page

Hi, I have a page which have multiple signup forms. I've init'ed the forms induvidually, like this:

$('#jumbotron form').formchimp();
$('#sticky-sign-up form').formchimp();

But when i submit one of the forms, everything is fine, but when i go an submit the other form afterwards, the second form will respond in the first form's respnose div. How can this be?

I would like it to append the responses for one form, in itself (this) not the previously appended #mc-response div...

Feature request: callback functions

Great code, thank you for sharing!

Any change you would include callback functions? I would like to send an event to Google Analytics when the form has been successfully submitted. When an error occurs, another callback function could be run.

Invalid email message is typed incorrectly

Hi!
If you enter invalid email address the error message has typo:
"alid email address. Please use a valid email address"
Must be: "Invalid email address. Please use a valid email address"

Target error responses?

Is it possible to specify different text output/callback functions for different error responses?

Partial error message

Why the line

responseMessage = responseMessage.substring(3);

on line 65? It chops the first three characters of the error output, which makes it incomplete.

Insecure code!

Because this is a 100% JavaScript implementation, the browser has the MailChimp API key. With this, anyone can go download, edit, or delete your lists, members, and any other assets associated with your MailChimp account.

Correct solutions have the JavaScript calling server-side PHP code, which holds or accesses the MailChimp API. In this way, it is kept out of the user's hands.

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.