Atozed Forums
OnAsyncPageUnloaded don't wok - Printable Version

+- Atozed Forums (https://www.atozed.com/forums)
+-- Forum: Atozed Software Products (https://www.atozed.com/forums/forum-1.html)
+--- Forum: IntraWeb (https://www.atozed.com/forums/forum-3.html)
+---- Forum: English (https://www.atozed.com/forums/forum-16.html)
+----- Forum: IntraWeb General Discussion (https://www.atozed.com/forums/forum-4.html)
+----- Thread: OnAsyncPageUnloaded don't wok (/thread-3032.html)



OnAsyncPageUnloaded don't wok - Mikael Nilsson - 02-20-2023

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.


RE: OnAsyncPageUnloaded don't wok - Alexandre Machado - 02-21-2023

Can you point me the example code. What browser are you using to test this?


RE: OnAsyncPageUnloaded don't wok - Mikael Nilsson - 02-22-2023

(02-21-2023, 11:29 PM)Alexandre Machado Wrote: Can you point me the example code. What browser are you using to test this?

I have removed the code just now.

Recently installed 

1. RAD Studio 11.2
2. Intraweb 15.2.69
3. TMS Intraweb component pack 5.9.3.0

after that Patch 2 for RAD Studio 11.2 (Do I have to reinstall Intraweb)

I don't think it's related to browser. I have testet Edge and Firefox. (did not work)


RE: OnAsyncPageUnloaded don't wok - Mikael Nilsson - 02-22-2023

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;