[CLOSED] Popup window Collabse issue

  1. #1

    [CLOSED] Popup window Collabse issue

    we have used popup window collapsible option. it is working fine in master page but inside of the page it is not working.

    what i have to change instead of mode:"iframe"

    function alert_communication(page, w, h, t) {
    isExist = Ext.isEmpty(Ext.getCmp('c2'));
    if (isExist == true) {
    win1 = new Ext.Window({
    modal: false,
    layout: 'absolute',
    width: w,
    height: h,
    title: t,
    closable: true,
    resizable: false,
     
    autoLoad: { showMask: true, maskMsg: load, scripts: true, mode: "iframe", url: page },
     
    autoScroll: false,
    collapsible: true,
    id: "c2"
    });
    win1.show(null);
    }
    else {
    var isshown = Ext.getCmp('c2').isVisible();
    if (isshown == false) {
    win1.show(null);
    }
    }
    }
    Last edited by geoffrey.mcgill; Jul 26, 2010 at 7:56 AM.
  2. #2
    Hello!

    I have an error: 'load' is undefined when I'm trying your function. Is there a variable load or did you mean the message 'load'? If the second there must be a string.
    maskMsg: 'load'
    Could you provide me with a sample code where collapsible option doesn't work? I tried this code using your function and It works fine.

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    
    <html xmlns="http://www.w3.org/1999/xhtml" >
    <head runat="server">
        <title></title>
        <script type="text/javascript">
            function alert_communication(page, w, h, t) {
                isExist = Ext.isEmpty(Ext.getCmp('c2'));
                if (isExist == true) {
                    win1 = new Ext.Window({
                        modal: false,
                        layout: 'absolute',
                        width: w,
                        height: h,
                        title: t,
                        closable: true,
                        resizable: false,
    
                        autoLoad: { showMask: true, maskMsg: "load", scripts: true, mode: "iframe", url: page },
    
                        autoScroll: false,
                        collapsible: true,
                        id: "c2"
                    });
                    win1.show(null);
                }
                else {
                    var isshown = Ext.getCmp('c2').isVisible();
                    if (isshown == false) {
                        win1.show(null);
                    }
                }
            }
    
            var click = function() {
                alert_communication("http://google.com", 400, 400, "Some title");
            }
        </script>
        
    </head>
    <body>
        <ext:ResourceManager runat="server"/>
        <form id="form1" runat="server">
            <ext:Button runat="server" Text="Click">
                <Listeners>
                    <Click Fn="click"/>
                </Listeners>    
            </ext:Button>
        </form>
    </body>
    </html>

Similar Threads

  1. Replies: 0
    Last Post: Jul 31, 2012, 10:36 AM
  2. Replies: 1
    Last Post: Jun 18, 2012, 4:41 PM
  3. [CLOSED] Button event is not firing in parent window from popup window
    By rnachman in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Mar 14, 2011, 8:35 PM
  4. Replies: 1
    Last Post: Mar 14, 2011, 5:20 PM
  5. Replies: 1
    Last Post: Mar 11, 2011, 11:07 PM

Posting Permissions