DHTML Modal Window Widget - Pause Execution?
1) Script Title:
DHTML Modal Window Widget
2) Script URL (on DD):
http://www.dynamicdrive.com/dynamici...dhtmlmodal.htm
3) Describe problem:
I am using this tool and I am wondering if there is a way to "pause" execution of the next line of code until after the modal window is closed or hidden? If I recall correctly the definition of a modal window in the client/server days was a window that had to be dismissed before any other processing took place; that included the very next line of code after the window opened.
Better explanation (I hope)
OK ... what I am after is a way to not only prevent the user from interacting with the parent page but also not let any code that is after the opening of the modal dialogue exevute until it has been closed/hidden.
Perhaps I am going about this teh wrong way.
Here is my problem ...
PAGE A contains a TAB control with multiple tabs on it. One of the tabs contains PAGE B. Upon a button click in PAGE B I want to display a modal dialogue and once the modal dialogue is closed/hidden I want PAGE B to refresh. So what I am doing is opening the modal dialogue and the next line of code is to refresh PAGE B. The problem is that the line of code to do teh refresh is called right after the modal dialogue opens and not after it has been closed/hidden.
You would think that I could just use the OnClose function call BUT ...
To make it harder I am opening the modal dialogue from PAGE A by calling up to it via parent of PAGE B. The reason I am doing this is because I want the modal dialogue veil to cover both PAGE A and PAGE B.
Perhaps there is a way that I can have a function on PAGE B called when the modal dialogue that I open from PAGE A closes but I do not know how to ;-(
Maybe I am the one who does not understand ...
But from looking at your answer it looks to me that you are providing a mthod for the veil to whiteout the parent page but I do not see how the code on the parent page will not continue to run.
Perhaps I am missing something but will the line of code after the one that opens the dialogue wait to execute until after the dialogue is dismissed?
I just do not knwo how to ...
Yes but ...
In my case PAGE B (a child or PAGE A) needs to invoke the dialogue but needs to do so thru PAGE A so that PAGE A is also covered/disabled. It is a function on PAGE B that needs to be executed when the dialgue closes but I am not sure how to do that.
Can I some way inside of PAGE A tell the dialgue to call a function that is on PAGE B?