0.0.5 • Published 4 years ago

@wviveiro/ajaxform v0.0.5

Weekly downloads
1
License
ISC
Repository
github
Last release
4 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

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago