Threaded View

  1. #1
    Ext User
    Join Date
    Jan 2009
    Vote Rating
    PlanetTechman is on a distinguished road


    Default [Solved] Closing Popup Ext.Window from within IFRAME html button

    I am having trouble figuring out how to close an Popup Ex.Window from within a page nested in a ManagedIFrame using a standard html button event.
    Have basic level knowledge with Java but slowly learning along with Ext so just need someone to finger point in a direction. My app has a mixture of Ext, ASS Classic and standard HTML.
    Am opening the popup via image link (see code below) which loads the Ext.Window and page url into the ManagedIFrame as specified by winURL. This all works fine.
    I would now like to close this window via an event on the Cancel button. I have tried various methods most resulting in “win is not define” etc.. which I understand as it can’t be seen I’m guessing. I’m not sure where to go next.
    function showEditWindow(winTitle,winWidth,winHeight,winURL) {
           var win = new Ext.Window({
               title: winTitle,
               width: winWidth,
               height: winHeight,
               modal: 'true',
               layout: 'fit' ,
               items: [new Ext.ux.ManagedIFrame.Panel(
                           loadMask: false
           return win;
    Attached Images