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

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..."