How To Post to Server Connect from Javascript?

Wouldn't fetch() do the job?

fetch('/dmxConnect/api/myaction.php', {
    method: 'POST',
    body: new URLSearchParams({
      value1: 'john',
      value2: 'doe'
    })
  });

Indeed it would. I wish we had a consolidated page of Javascript to Wappler (and back) Tips. These nuggets are spread over a few years of forum posts.