Skip to content
This repository has been archived by the owner on Dec 7, 2021. It is now read-only.

tamiadev/tamia-ajax-form

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tâmia Ajax Form

Build Status

Forms ajaxification for Tâmia.

Installation

$ npm install --save-dev tamia-ajax-form

Usage

ajaxForm({
  form: formElem,
  url: 'http://example.list-manage.com/subscribe/post',
  type: 'jsonp',
  jsonpCallback: 'c',
  onSuccess: data => {
    console.log('Yep :-)');
    return {
      result: 'success',
    };
  },
  onError: data => {
    console.log('Nope :-(');
    return {
      message: data.message,
    };
  },
});

License

The MIT License, see the included License.md file.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published