Hi,
When I initiate WDW from the frame say 'main' frame, it only blocks user interaction with that 'main' frame. Other frames are possible to interactor for user.
Can I implement , as all the other frames will get blocked - no user intraction will be posible on from any frame? When I intiate it from any frame.
Hope I have clearlly specify , what I mean to.
Please help.
Hi Amol,
If your dialog is inside of UpdatePanel and it will be recreated by async response, then there is no need to keep reference to blocking element. You may just insert that block and expect that it will be removed by response. Below is example:
<script type="text/javascript"> function blockDialog() { var dialog = $find('<%=WebDialogWindow1.ClientID%>'); var block = document.createElement('DIV'); var style = block.style; style.width = '100%'; style.height = '100%'; style.position = 'absolute'; style.background = 'red'; //'#808080' style.zIndex = 100000; style.opacity = 0.5; style.filter = 'alpha(opacity:50)'; var parent = dialog.get_element(); parent.insertBefore(block, parent.firstChild); //alert('ok'); } </script> <ig:WebDialogWindow ID="WebDialogWindow1" runat="server" Height="155px" Width="346px"> <ContentPane> <Template> <asp:Button ID="Button1" runat="server" Text="Button" OnClientClick="blockDialog()" /> </Template> </ContentPane> </ig:WebDialogWindow>
Hi Viktor,
So its outof scoop of WebDialogWindow ? , ok. Let i possibly think over your other sugesstions.
Yet it will be good for me , if you have any example to block the parent window.
Thank you,
The logic of WebDialogWindow is related to the window where dialog is located. In theory, if all frames in application are parts of aspx, then it is possible for application to get references to their documents and create some kinds of blocks for them. Or application can access the parent window and create a block within that window. However, similar actions are beyond scope of dialog window. They are suggestions what can be done to achive that.