Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var xhr = new XMLHttpRequest();
- var formData = new FormData();
- formData.append('text', value);
- xhr.open("POST", "../contacts/load");
- xhr.setRequestHeader('Content-Type', 'text/html');
- xhr.send(formData);
- console.log(value);
- ///////
- $.ajax({
- url: "../contacts/load",
- type: "POST",
- dataType: "html",
- data: { text:value}
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement