1. #1
    Sencha User
    Join Date
    Sep 2011
    Posts
    45
    Answers
    4
    Vote Rating
    0
    smerny is on a distinguished road

      0  

    Default Answered: show popup instead of creating new one in html dom

    Answered: show popup instead of creating new one in html dom


    i have the following code:

    Code:
    	if(!helpPopup){
    	    var helpPopup = new Ext.Panel({
    	    	id: 'helpPopup',
    			floating: params.floating,
    			modal: params.modal,
    			centered: params.centered,
    			width: params.width,
    			height: params.height,
    			styleHtmlContent: params.styleHtmlContent,
    			scroll: params.scroll,
    			html: params.html,
    			dockedItems: [{
    			      dock: 'top',
    			      xtype: 'toolbar',
    			      title: params.title
    			}]
    		});
    	}
    	    
    	helpPopup.show('pop');
    i was expecting it to create the popup only if it hadn't previously done so... instead, everytime i close/reopen it is creating a new helpPopup div in the dom. how do i stop this?

  2. nevermind, fixed it this way..

    Code:
    Demo = new Ext.Application({....
    Code:
    	if(!Demo.helpPopup){
    	    Demo.helpPopup = new Ext.Panel({
    	    	id: 'helpPopup',
    			floating: params.floating,
    			modal: params.modal,
    			centered: params.centered,
    			width: params.width,
    			height: params.height,
    			styleHtmlContent: params.styleHtmlContent,
    			scroll: params.scroll,
    			html: params.html,
    			dockedItems: [{
    			      dock: 'top',
    			      xtype: 'toolbar',
    			      title: params.title
    			}]
    		});
    	}
    	    
    	Demo.helpPopup.show('pop');

  3. #2
    Sencha User
    Join Date
    Sep 2011
    Posts
    45
    Answers
    4
    Vote Rating
    0
    smerny is on a distinguished road

      0  

    Default


    nevermind, fixed it this way..

    Code:
    Demo = new Ext.Application({....
    Code:
    	if(!Demo.helpPopup){
    	    Demo.helpPopup = new Ext.Panel({
    	    	id: 'helpPopup',
    			floating: params.floating,
    			modal: params.modal,
    			centered: params.centered,
    			width: params.width,
    			height: params.height,
    			styleHtmlContent: params.styleHtmlContent,
    			scroll: params.scroll,
    			html: params.html,
    			dockedItems: [{
    			      dock: 'top',
    			      xtype: 'toolbar',
    			      title: params.title
    			}]
    		});
    	}
    	    
    	Demo.helpPopup.show('pop');

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..." hd porno faketaxi