function validateShow(accessnumber) {
const modalBody = $('#validateModal .modal-body');
modalBody.html('
Loading...
Fetching verification details for #' + accessnumber + '...
');
$.ajax({
url: `${BASE_URL}/api/request/validate/${accessnumber}`,
method: 'GET',
dataType: 'html',
success: function(response) {
modalBody.html(response);
},
error: function(xhr, status, error) {
console.error("AJAX Error:", status, error);
modalBody.html(`
Loading...
Fetching verification details for #' + accessnumber + '...
');
$.ajax({
url: `${BASE_URL}/api/request/unvalidate/${accessnumber}`,
method: 'GET',
dataType: 'html',
success: function(response) {
modalBody.html(response);
},
error: function(xhr, status, error) {
console.error("AJAX Error:", status, error);
modalBody.html(`