1. #1
    Sencha User
    Join Date
    Sep 2010
    Posts
    2
    Vote Rating
    0
    mofallyes is on a distinguished road

      0  

    Default How can i close a iframe Popup Window by clic on simple button

    How can i close a iframe Popup Window by clic on simple button


    Sorry for my english,
    How can i close this window by Using Javascript Only, I use this Window for registring a Form and i want if the submition is ok to close automaticly the Popup Window.
    Thanx for your help
    Code:
    function PopupPageFrame(titre,h,w,page)
    { 
     var winPanel = Ext.getCmp('panelWindowId');
     var winPanel = new Ext.Window(
        {
            title: '<div  style="background-image:url(images/globe-model.png);  background-repeat:no-repeat; background-position:3px 0px;  margin-top:5px; padding-left:25px;  height:16px;">'+titre+'</div>',
            height:h, 
            width: w,
            modal:true,
            moveable:true,
            draggable:true,
            shadow:true,
               maximizable: true,
            resizable:true,
            autoScroll: true,
            collapsible:true,
            iframe:true,
            id:'panelWindowId',
            scope:this,
            plain:true,
            autoScroll: true,
            close :function(){
                winPanel.hide();
                window.location.reload();
                },
            animate:true,
            html: '<iframe style="overflow:auto;width:100%;height:100%;"  frameborder="0"  src="'+ page +'"></iframe>',        
            //autoLoad: {url:''+ page +'', callback: this.initSearch, scope: this},
            bodyStyle :{bgcolor : '#FFFFFF',background:'#FFFFFF'}        
        }
     );
       winPanel.show();
    }
    Last edited by mystix; 1 Feb 2012 at 7:02 AM. Reason: messy code is hard to read

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar