fabioquarantini / formchimp Goto Github PK
View Code? Open in Web Editor NEW๐ต A customizable MailChimp ajax plugin for jQuery
๐ต A customizable MailChimp ajax plugin for jQuery
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...
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.
https://github.com/fabioquarantini/formchimp/blob/1.2.1/jquery.formchimp.js#L54
There's a check on if ( $("." + defaults.responseClass).length === 0 ) {
but $responseContainer
is not defined.
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"
Is it possible to specify different text output/callback functions for different error responses?
Why the line
responseMessage = responseMessage.substring(3);
on line 65? It chops the first three characters of the error output, which makes it incomplete.
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.
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.