12-11-2019, 01:43 PM
How can I define java script variables in any way so I can set their values in java script and to have access to read the variables in intraweb 15.1.5?
(12-11-2019, 02:43 PM)Jose Nilton Pace Wrote: [ -> ]Hi, you can pass any value from html/js to delphi using new callback functions.The file is written for those who already know a lot about javascript and callback. So not for me who knows nothing about that.
http://docs.atozed.com/docs.dll/developm...015.1.html
(12-11-2019, 08:10 PM)MrSpock Wrote: [ -> ]Will the below work?(12-11-2019, 02:43 PM)Jose Nilton Pace Wrote: [ -> ]Hi, you can pass any value from html/js to delphi using new callback functions.The file is written for those who already know a lot about javascript and callback. So not for me who knows nothing about that.
http://docs.atozed.com/docs.dll/developm...015.1.html
$('#Select2').select2({
ajax: {
url: "$/callback?callback=My_Delphi_CallBack_IW15.1+",
},
function SweetAlert() {
swal({
type: "question",
title: "Confirm etc !",
showCancelButton: true,
allowOutsideClick: false
}).then((result) => {
if (result.value) {
ajaxCall( "My_Delphi_CallBack_IW15.1+", "" );
}
})
}
document.getElementById("IWLABEL1").tag='34';
AddChangedControl( "IWLABEL1" );
<script>
document.getElementById("FOTOGRAFIA").addEventListener('click', getPosition)
function getPosition(e) {
var rect = e.target.getBoundingClientRect();
var x = e.clientX - rect.left;
var y = e.clientY - rect.top;
ajaxCall( "My_Delphi_getPosition", "x=" + x + "&y=" + y );
}
</script>