Posts: 92
Threads: 33
Joined: May 2018
Reputation:
0
Location: Sweden
Hi,
I tried to use OnAsyncPageUnloaded. But if I add the example code I have to click twice on every button link etc on that page.
Posts: 2,299
Threads: 202
Joined: Mar 2018
Reputation:
87
Location: Auckland, New Zealand
Can you point me the example code. What browser are you using to test this?
Posts: 92
Threads: 33
Joined: May 2018
Reputation:
0
Location: Sweden
The problem exists even with no code inside the OnAsyncPageUnloaded event.
Also I don't understand WebApplication.ActiveFormCount = 1. My formCount is always greater than 1. So WebApplication.SelfDestruct(15); will never happens.
if AIsCurrent and (WebApplication.ActiveFormCount = 1) then begin
WebApplication.SelfDestruct(15);
end;