[CLOSED] Open window in a parent container

  1. #1

    [CLOSED] Open window in a parent container

    Hello,

    I' have this helper method to open new windows:

    function NewWindow(container, winId, winURL, winTitle, winHeight, winWidth, winModal, winMax, winRes, winCollap, winIconCls) {
                    if (winTitle == '' || winTitle == undefined) { winTitle = 'Teste' }
                    if (winCollap == '' || winCollap == undefined) { winCollap = false }
                    if (winRes == '' || winRes == undefined) { winRes = false }
                    if (winModal == '' || winModal == undefined) { winModal = false }
                    if (winHeight == '' || winHeight == undefined) { winHeight = 500 }
                    if (winWidth == '' || winWidth == undefined) { winWidth = 500 }
                    var win = new Ext.Window({ renderTo: Ext.getBody(),
                                    maximizable: winMax,
                                    resizable: winRes,
                                    collapsible: winCollap,
                                    constrain: false,
                                    title: winTitle,
                                    height: winHeight,
                                    width: winWidth,
                                    modal: winModal,
                                    iconCls: winIconCls,
                                    frame: true,
                                    layout: 'fit',
                                    autoLoad: { maskMsg: "Cargando...", showMask: true, mode: "iframe", url: winURL }
                    });
                    win.show();
     
    }
    How can open a new windows in a parent container? currently renderTo: is to Ext.getBody(). I have a container parameter prepared to this action.

    Thanks
    Last edited by Daniil; Feb 22, 2011 at 8:23 AM. Reason: Removed <font> tags, [CLOSED]
  2. #2
    Hello,

    Paste code again.

    function NewWindow(container, winId, winURL, winTitle, winHeight, winWidth, winModal, winMax, winRes, winCollap, winIconCls) {
                    if (winTitle == '' || winTitle == undefined) { winTitle = 'Teste' }
                    if (winCollap == '' || winCollap == undefined) { winCollap = false }
                    if (winRes == '' || winRes == undefined) { winRes = false }
                    if (winModal == '' || winModal == undefined) { winModal = false }
                    if (winHeight == '' || winHeight == undefined) { winHeight = 500 }
                    if (winWidth == '' || winWidth == undefined) { winWidth = 500 }
                    var win = new Ext.Window({ renderTo: Ext.getBody(),
                                    maximizable: winMax,
                                    resizable: winRes,
                                    collapsible: winCollap,
                                    constrain: false,
                                    title: winTitle,
                                    height: winHeight,
                                    width: winWidth,
                                    modal: winModal,
                                    iconCls: winIconCls,
                                    frame: true,
                                    layout: 'fit',
                                    autoLoad: { maskMsg: "Cargando...", showMask: true, mode: "iframe", url: winURL }
                    });
                    win.show();
    }
  3. #3
    Hi,

    Please note that you could edit your initial post. I mean that you could avoid posting code again.

    Regarding the question.

    To render a window to parent's container, please use the following code:
    parent.containerId
    See also
    https://examples1.ext.net/#/Panel/Ba...Communication/

Similar Threads

  1. [CLOSED] open window out of its parent
    By imaa in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Jul 26, 2011, 6:07 AM
  2. Open window out the parent
    By Egale in forum 1.x Help
    Replies: 8
    Last Post: Jun 22, 2011, 11:45 AM
  3. [CLOSED] Open window in parent
    By paulc in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Nov 16, 2010, 9:54 AM
  4. [CLOSED] Open a Window in a parent page
    By Immobilmente in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Apr 07, 2009, 4:10 AM
  5. [CLOSED] ext:ImageButton, open URL in parent window
    By Jurke in forum 1.x Legacy Premium Help
    Replies: 5
    Last Post: Mar 11, 2009, 11:39 AM

Posting Permissions