Hello!
I specially added this line:
delphi code
procedure TIWCGJQFrame1.IWCGJQFrameCreate(Sender: TObject);
begin
Sleep(5000);
end;
If i click button 2, then load indicator will be visible all time while frame is loading (creating). In example, frame need 5 seconds.
Sleep emulates heavy frame create code or frame with big amount of contros.
CGAddJavaScriptToAjaxResponse('AddChangedControl("dummy");');
Yes, lock indicator now appears, but closes too early.
If we apply, that 5 sec pause emulates slow internet connection speed,
user clicks to button and nothing happening for 5 seconds in sample.
And user will be sure, that nothing happening at all and everything is broken)
the 2nd part, the 2nd button, I don't understand at all what you mean, please report.
Run server "Project3.exe",
open session in web browser,
close process Project3.exe (for example: internet connection lost or server goes on maintenance),
press second button, you will see, that lock indicator opens and closes shortly.
I'm not sure, but i think will be better if lock indicator will be shown permanently in this case.
Or, may be better to add javascript message window when async methods cannot be executed (when server not responding)?