Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

not getting any response with fetch javascript method

const postURL = 'http://localhost/myproject';
const frm = document.getElementById('userContactForm');
const formData = new FormData(frm);
formData.append("submit",1);
fetch(postURL, {
	method: 'POST',
	body: formData,
}).then(res => res.json()).then((resData) => {
	console.log(resData);
	frm.reset();
}).catch(error => console.warn(error));
Comment

PREVIOUS NEXT
Code Example
Javascript :: extract uppercase words nodejs 
Javascript :: javascript blob to file 
Javascript :: ajax syntax in javascript 
Javascript :: question mark and colon in javascript 
Javascript :: jquery navigation 
Javascript :: particles js is not full screen 
Javascript :: every method javascript 
Javascript :: get format file in javascript 
Javascript :: javascript how to increment by other than one in for loop 
Javascript :: float to currency js 
Javascript :: hover con js 
Javascript :: javascript date convert to unix 
Javascript :: javascript array move element 
Javascript :: getting average of array javascript 
Javascript :: javascript dir 
Javascript :: how to set css variables in javascript 
Javascript :: css canvas set aspect ratio 
Javascript :: sweet alert in java Script 
Javascript :: get Two digit number js 
Javascript :: search inside array with object mongodb 
Javascript :: All Longest Strings javaScript 
Javascript :: convert date to string javascript 
Javascript :: check many keys in objects 
Javascript :: string compare on date in js 
Javascript :: disable button in jsx 
Javascript :: scrollto is not a function javascript 
Javascript :: action checkbox selected vue js 
Javascript :: bun create react app 
Javascript :: debounce js 
Javascript :: javascript convert timestamp to formatted date 
ADD CONTENT
Topic
Content
Source link
Name
1+2 =