Atozed Forums
OnClick or 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 or OnAsyncClick ? (/thread-1166.html)



OnClick or OnAsyncClick ? - SorenJensen - 08-02-2019

Hi,

Could anyone tell me the difference between the two ?

And when would you use the one or the other ?

Regards
Soren


RE: OnClick or OnAsyncClick ? - SorenJensen - 08-03-2019

After searching and reading a lot, I might have found the answer to my question, and the clue lies a bit in the naming of the 2 different methods:

OnClick will execute whatever is in the procedure, but the application will continue program processing, without waiting for the onclick procedure to finish, whereas

OnAsuncClick the application will not execute the next program statement, until whatever was activated with the click, has terminated.

Is that a correct assumption ?


RE: OnClick or OnAsyncClick ? - kudzu - 08-03-2019

You have them backwards and it refers to the web side.

Normal - Browser will wait for server to complete the method. Full page refresh afterward.

Async - Browser still will wait on server, but you can do partial updates (ie AJAX type) updates to the page.


RE: OnClick or OnAsyncClick ? - SorenJensen - 08-04-2019

(08-03-2019, 12:56 PM)kudzu Wrote: You have them backwards and it refers to the web side.

Normal - Browser will wait for server to complete the method. Full page refresh afterward.

Async - Browser still will wait on server, but you can do partial updates (ie AJAX type) updates to the page.

Hi Kudzu,

Thanks for the clarification.

Regards
Soren