Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
java script variable access in intraweb
#5
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:
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" );
Reply


Messages In This Thread
RE: java script variable access in intraweb - by Jose Nilton Pace - 12-12-2019, 12:47 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)