12-12-2019, 12:47 PM
Hi. Some JS have an AJAX call internally or after finished, call a callback delphi function.
First example is a JS Select2 calling an internal AJAX:
Second example is a JS SweetAlert calling an ajaxcall after the result:
Third, try changed values to get in a post.
First example is a JS Select2 calling an internal AJAX:
Code:
$('#Select2').select2({
ajax: {
url: "$/callback?callback=My_Delphi_CallBack_IW15.1+",
},Second example is a JS SweetAlert calling an ajaxcall after the result:
Code:
function SweetAlert() {
swal({
type: "question",
title: "Confirm etc !",
showCancelButton: true,
allowOutsideClick: false
}).then((result) => {
if (result.value) {
ajaxCall( "My_Delphi_CallBack_IW15.1+", "" );
}
})
}Third, try changed values to get in a post.
Code:
document.getElementById("IWLABEL1").tag='34';
AddChangedControl( "IWLABEL1" );
