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');

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