[CLOSED] Open a modal popup from a modal popup

  1. #1

    [CLOSED] Open a modal popup from a modal popup

    I need to show a modal pop up on some action inside a modal pop up. With the below piece of code, The First pop up appears inside the main window and the second pop up appears inside the first pop up, even if i set the width & height of the second Pop to be greater than those of the first one. How to make the second popup behave as a child to the main window rather than to the first popup?

    function ShowFirstChild() {
    
                var win = new window.Ext.Window({
                    id: '1',
                    title: 'My First Modal PopUp',
                    layout: 'absolute',
                    modal: 'true',
                    renderTo: Ext.getBody(),
                    width: 865, height: 552, autoLoad: { showMask: true, mode: 'iframe',
                        url: '/Home/MyTestPage/'
                    }
                });
                win.show();
            }        
    
    function ShowSecondChild() {
                    var win2 = new window.Ext.Window({
                    id: '2',
                    title: 'My Second Modal PopUp',
                    layout: 'absolute',
                    modal: 'true',
                    renderTo: Ext.getBody(),
                    width: 900, height: 600
                    }
                });
                win2.show();
                win2.load({ url: '/Home/MyTestPage/', nocache: true, scripts: true, mode: 'iframe' });
            }
    Thanks,
    Aparna B.
    Last edited by Daniil; Jul 24, 2012 at 9:00 AM. Reason: Please use [CODE] tags, [CLOSED]
  2. #2
    Quote Originally Posted by Aparna B View Post
    I need to show a modal pop up on some action inside a modal pop up. With the below piece of code, The First pop up appears inside the main window and the second pop up appears inside the first pop up, even if i set the width & height of the second Pop to be greater than those of the first one. How to make the second popup behave as a child to the main window rather than to the first popup?

    function ShowFirstChild() {
    
                var win = new window.Ext.Window({
                    id: '1',
                    title: 'My First Modal PopUp',
                    layout: 'absolute',
                    modal: 'true',
                    renderTo: Ext.getBody(),
                    width: 865, height: 552, autoLoad: { showMask: true, mode: 'iframe',
                        url: '/Home/MyTestPage/'
                    }
                });
                win.show();
            }        
    
    function ShowSecondChild() {
                    var win2 = new window.Ext.Window({
                    id: '2',
                    title: 'My Second Modal PopUp',
                    layout: 'absolute',
                    modal: 'true',
                    renderTo: Ext.getBody(),
                    width: 900, height: 600
                    }
                });
                win2.show();
                win2.load({ url: '/Home/MyTestPage/', nocache: true, scripts: true, mode: 'iframe' });
            }
    Thanks,
    Aparna B.
    GOt it working. Reference :http://forums.ext.net/showthread.php?9935
    Last edited by Daniil; Jul 24, 2012 at 9:00 AM. Reason: Please use [CODE] tags

Similar Threads

  1. Replies: 1
    Last Post: Aug 10, 2012, 1:09 PM
  2. Replies: 5
    Last Post: Apr 20, 2012, 6:20 AM
  3. [CLOSED] Modal Window does not open with the correct z-index in desktop
    By Labyrinth in forum 1.x Legacy Premium Help
    Replies: 5
    Last Post: Nov 08, 2011, 6:53 PM
  4. [CLOSED] popup open as topmost
    By Marcelo in forum 1.x Legacy Premium Help
    Replies: 6
    Last Post: Oct 03, 2011, 6:58 PM
  5. [CLOSED] open popup window
    By speedstepmem4 in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Feb 06, 2009, 2:13 PM

Tags for this Thread

Posting Permissions