Padding-left: 3px; padding-Right: 5px; "class =" noprint ">
In our actual development, the showmodaldialog modal form is often used. The problems in the form are sometimes a headache. Here I will write a bit about the problems I encountered during development and solutions.
I. Refresh
The first case is that the parent form of the modal form is not refreshed, that is, after the modal window is closed, the parent form is not refreshed.
Solution: Enter window. Location. Reload () after the JavaScript code of the pop-up modal form ();
The second case is: Sometimes you do not want to refresh the parent form, that is, after the modal window is closed, the parent form is not refreshed.
Solution: Enter "Return false" after the JavaScript code of the pop-up modal form;
Ii. Close the problem
Close method: use JavaScript
Window. Opener = NULL; self. Close ();