0.0.5 • Published 5 years ago

@wviveiro/ajaxform v0.0.5

Weekly downloads
1
License
ISC
Repository
github
Last release
5 years ago

Ajax Form

Submit a form without having to add it to DOM. Works like a ajax function, but you can set the tab target instead of receiving a return on the function.

Install

npm i @wviveiro/ajaxform

Usage

import ajaxform from 'ajaxform';

const onClick = () => {
    ajaxform({
        url: 'https://foo.bar',
        data: {
            foo: 'bar',
            lorem: 'ipsum'
        },
        target: '_blank'
    });
}
0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago