Atozed Forums
OnClick vs OnAsyncClick - 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: OnClick vs OnAsyncClick (/thread-1672.html)



OnClick vs OnAsyncClick - newuser - 05-16-2020

Hi,
Can anyone tel me the difference?


RE: OnClick vs OnAsyncClick - kudzu - 05-16-2020

OnClick will cause a full page refresh, async will only cause parts of the page to update which have changed.


RE: OnClick vs OnAsyncClick - newuser - 05-16-2020

Thank you.
So, Async is "better / more efficiƫnt"....
Why than not open a onAsyncClick when double click the component?


RE: OnClick vs OnAsyncClick - kudzu - 05-16-2020

It depends on the need. Some operations require a full refresh. Most times async is better.

Double click goes to onclick because that functionality has existed since long before we had async support.