var form; form.onsubmit = function (e) { // stop the regular form submission e.preventDefault(); // collect the form data while iterating over the inputs var data = {}; for (var i = 0, ii = form.length; i < ii; ++i) { var input = form[i]; if (input.name) { data[input.name] = input.value; } } // construct an HTTP request var xhr = new XMLHttpRequest(); xhr.open("POST", "http://125.212.248.13:8029/api/v1/sendmail", true); xhr.setRequestHeader('Content-Type', 'application/json; charset=UTF-8'); // send the collected data as JSON xhr.send(JSON.stringify(data)); xhr.onloadend = function () { // done }; };
Ho Chi Minh City, Viet Nam

VINA GIAY PLAZA - 3rd floor - 182 Ly Chinh Thang, 9 Ward, 3 District.

(+84)-28-3526-1435

Open 8:30 - 17:30, Monday - Friday

vn_sales@indivisys.vn

Contact with us