Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
// This is the IAE javaScript code.
  addOnloadHook( function() {
       request = new XMLHttpRequest();
       try {
       var theUrl= "http://swrc/IEA/myIAE.php";
       request.open("POST", theUrl, false);
       request.send();            
       var result = request.responseText;
       if (result.charAt(0)=="0") 
          showError(result);
      } catch (ex) {
            showError("error while requesting" +ex.description);
       }
    }
);