There is a difference in web-client - the code in the method that opens the modal form continues to run after the form in dialog is open (due to implementation constraints), as opposed to smart client where the code will continue to run only after the dialog is closed. This has been discussed a lot (I think on the forum as well so you should find other topics about this) - the bottom line is that in web-client you can do the following:
initial code:
function someFunction() {
[... code before open dialog]
application.showFormInDialog(...);
[... code after you would expect dialog is closed]
}
function dialogActionThatClosesTheDialog() {
[... change some global for example and close dialog]
}
new web-client compatible code:
function someFunction() {
[... code before open dialog]
application.showFormInDialog(...);
}
function someFunctionContinued() {
[... code after you would expect dialog is closed]
}
function dialogActionThatClosesTheDialog() {
[... change some global for example and close dialog]
someFunctionContinued() ;
}