Note | ||
---|---|---|
| ||
As of July 25th, 2023, there is a content freeze on this page. |
The onkeyup event activates when a keyboard key is released on an element. The event can be specified as a JavaScript expression or the name of a JavaScript function.
...
Code Block | ||||
---|---|---|---|---|
| ||||
// 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);
}
};
}
|
...