Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
400
Using a WebDialogWindow from inside a Master page and splitter
posted

I am attempting to use a WebDialogWindow in modal mode from a content page that is displayed inside of a splitter that is on a master page.  To say it another way, I have a Master page.  Contained in the Master page is a WebSplitter with two panes.  Each pane of the splitter is a content pane for the Master page.  I have a number of Content pages that provide text for the Content panes.  Several of the Content pages include a WebDialogWindow that may be displayed.  If the WebDialogWindow is displayed, it is always in modal mode.

This works "ok" except that the only area that is "modal" is the content pane that contains the WebDialogWindow -- the other content pane and any additional items on the Master page are not affected by the modal state and can still be selected.  I know that if I define the WebDialogWindows as part of the Master page (outside of the splitter and content panes) that the modal attribute is applied to the entire page, just like I want.  So it looks like I need to wire up the WebDialogWindows as part of the Master page.

Unfortunately, I can't just define the WebDialogWindows in the Master page...  What I'm looking for is a way to copy/reparent/whatever the dialog definition at run time using Javascript from the Content page to the Master page and then show the Master page version.  I played with this some and have the basics working, but I'm having trouble getting everything set up properly.

Any suggestions on how to make this work would be appreciated.  Assume that I have a functioning WebDialogWindow along with buttons, text boxes, and event handlers (mostly client-side).

Thanks,

DaveL