Quote from
luishp on March 13, 2023, 10:45 am
It seems to working but is not. I explain my self. You have transfer the code into a sub, now, if there is more code under the sub it will continue to run regardless if the custom window has shown up and wait the user to input the verification coed. In 2 words, the dialog is not pause the execution of the rest script.
@smartmedia that's how JavaScript works: asynchronous and multithreading. The only way to pause the script execution is using jsAlert, jsConfirm or jsPrompt.
Its just a different way of programming but once you are used to, not much more difficult and quite more efficient.
Regards.
It seems to working but is not. I explain my self. You have transfer the code into a sub, now, if there is more code under the sub it will continue to run regardless if the custom window has shown up and wait the user to input the verification coed. In 2 words, the dialog is not pause the execution of the rest script.
@smartmedia that's how JavaScript works: asynchronous and multithreading. The only way to pause the script execution is using jsAlert, jsConfirm or jsPrompt.
Its just a different way of programming but once you are used to, not much more difficult and quite more efficient.
Regards.