Posts: 185
Threads: 55
Joined: Jul 2019
Reputation:
2
Location: Luxembourg
Hi,
Could anyone tell me the difference between the two ?
And when would you use the one or the other ?
Regards
Soren
Posts: 185
Threads: 55
Joined: Jul 2019
Reputation:
2
Location: Luxembourg
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 ?
Posts: 1,136
Threads: 37
Joined: Mar 2018
Reputation:
30
Location: Limassol, Cyprus
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.