1. #1
    Ext User
    Join Date
    Feb 2008
    Posts
    60
    Vote Rating
    0
    Surgeon is on a distinguished road

      0  

    Default win.body.getUpdater().startAutoRefresh() doesn't want to update window body element!

    win.body.getUpdater().startAutoRefresh() doesn't want to update window body element!


    I have the window:
    Code:
    win = desktop.createWindow({            	
    		.....Config Options.... 
    	, app: this.app
    	, phpFile: this.phpFile
    	, moduleId: this.moduleId	              
    	, listeners:{
    		activate: function (w) {			
    			w.body.getUpdater().update({
    				url: w.app.connection
    				, params: {
    					task: "getBalance"			
    					, moduleId: w.moduleId
    					, fileName: w.phpFile
    				}
    				, method: 'POST'
    				, scripts: false
    				, discardUrl: true
    				, scope: w
    				, nocache: true					        
    			});						
    		}		
    	}
    });
    Activate listener works correctly.

    After window definition I tried to use this code to start auto refresh window.body content.
    Code:
    win.show();
    win.body.getUpdater().startAutoRefresh(2);
    Also i tried this code:
    Code:
    win.body.getUpdater().startAutoRefresh({
    	interval: 2
    	, url: app.connection
    	, params: {
    		task: "getBalance"
    		, moduleId: moduleId
    		, fileName: phpFile
    	}	
    	, refreshNow: false
    });
    FireBug shows me the error:
    Code:
    cfg has no properties
    [Break on this error] url = cfg.url;
    How to start auto update window's body element with sending POST params?
    I've read docs, and found that if I didn't specify new url method should use the last used url.

  2. #2
    Ext User
    Join Date
    Feb 2008
    Posts
    60
    Vote Rating
    0
    Surgeon is on a distinguished road

      0  

    Default


    Solution is :
    Code:
    win.body.getUpdater().startAutoRefresh(
     180
     , app.connection
     , {task: "getBalance", moduleId: moduleId, fileName: phpFile}
     , false
    );

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..."