Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
javascript
javascript

// This function will be called on every key stroke
// When a valid customer number is typed, the customer name will appear on the screen
function getCustomerName(event, element) {
  var customerNumber = element.value;
  ajaxJSON({
    url: "/cgi/GETCUST.pgm",
    params: {
      "CSNUMBER": customerNumber
    },
    method: "post",
    async: true,
    handler: function(response) {
      changeElementValue("CSNAME", response.CSNAME);
    }
  };
}

...