Skip to content

boldprogressives/actionkit-javascript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ak-async-post.js

A replacement for ActionKit's widget.js ("AJAX signup") with a simpler Javascript API, with no specific expectations about how your HTML is structured.

Usage:

var data = {
  "email": "[email protected]",
  "name": "Joe Smith",
  "phone" "555-111-2345",
  "action_favorite_color": "Blue",
  "action_pets": ["dog", "cat"]
}; // or any valid actionkit form submission

function myCallback(result, data) {
  if (result === "error") {
    return doSomethingErroryWith(data); 
  }
  doSomethingSuccessyWith(data);
};

submitActionKitForm("https://act.example.com", "my-page-name", data, myCallback);

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published