Web Connection
re: XHR Send & Return
Gravatar is a globally recognized avatar based on your email address. re: XHR Send & Return
  Juan Brie
  All
  Sep 28, 2020 @ 04:23pm

Hi Rick ! Next code attempts to send a few fields allready edited to server.

var formulario=document.querySelector(form[name='Form01']);
var datos= new FormData(formulario);
var url='JBUPDATE.jb';
var solicitud= new XMLHttpRequest();
solicitud.addEventListener('load',verResultado);
solicitud.open('GET',url,false);
solicitud.send(datos);
...
...
function verResultado
alert(datos.code) // always 404 !!
return

If I use this code with Process, it run find, data is written to disk, but the page Resets. I need mantain it up, because I have an Array filling a table. How could I try it? Using REST? It give me always 404!

Gravatar is a globally recognized avatar based on your email address. re: XHR Send & Return
  Rick Strahl
  Juan Brie
  Sep 29, 2020 @ 01:02am

Make sure the URL is correct... and that it works if you hit it directly.

+++ Rick ---

© 1996-2024