SUBMITTER AJAX DOCUMENTATION

Send forms using AJAX without redirecting users or leaving the page. SUBMITTER supports seamless integration, and we’ve included examples using popular libraries to help you get started quickly.

1. Fetch Library

fetch('https://submitter.aniketgolhar.in/v1/your@email.com', {
    method: 'POST',
    headers: {
        'Content-Type': 'application/json'
    },
    body: JSON.stringify({
        name: "FormSubmit",
        message: "I'm from Devro LABS"
    })
})
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error(error));

2. Axios Library

axios.post('https://submitter.aniketgolhar.in/v1/your@email.com', {
    name: "FormSubmit",
    message: "I'm from Devro LABS"
})
.then(response => {
    console.log(response.data);
})
.catch(error => {
    console.error(error);
});

3. jQuery Library

$.ajax({
    method: 'POST',
    url: 'https://submitter.aniketgolhar.in/v1/your@email.com',
    dataType: 'json',
    data: {
        name: "FormSubmit",
        message: "I'm from Devro LABS"
    },
    success: (data) => console.log(data),
    error: (err) => console.log(err)
});