Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
CallBackResponse not working all the times
#1
Please I need to execute some javascript commands in my project. I found that the CallBackResponse can do the job.
The issue I face is that the procedure is not working all the times.

The first example which i want to focus to a text box is working perfectly.
var
  js: string;
begin
  js := 'document.getElementById("TXTQUANTITY").focus();';
  WebApplication.CallBackResponse.AddJavaScriptToExecuteAsCDATA(js);
end;


but when i try to run other commands it does nothing even a simple pop message
  js:=  'windows.alert("I am an alert box!");';
  WebApplication.CallBackResponse.AddJavaScriptToExecute(js);

Is there something else I have to pay attention.

i am running XE6 and Intraweb 14.0.50 version
Reply


Messages In This Thread
CallBackResponse not working all the times - by promi8eas - 01-11-2020, 05:45 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)