cscm控件
function setInter(fn,time){
	fn();
	return window.setInterval(fn,time);
}
var updateManager = new (function(){
	this.controlState = {};
	this.update = function(type,fn){
		if(!g_cscm){ 
			return null;
		}
		var ret = g_cscm.update();//通知检查更新
		if(new String(ret)!=""){
			var timer = setInter(function(){
				var process = g_cscm.doqueryService("query");//查总进度
				if(process){
					clearTimeout(timer);
					var state = g_cscm.doqueryService("query");//查总进度
					this.controlState = state;
					fn();
				}
			},1000);
		}
	};
	this.getState = function(controlName){//得到控件状态
	}
});
var cscmManager = new (function(){
	this.createCscm = function(fn){//创建cscm
		if(g_cscm){
			fn();
			return;	
		}
		var isAppletCreated = false;
		var me = this;
		var timer = setInter(function(){
			if(isIe()){
				createIeCscm();
				fn();
			}
			else{
				if(me.isEnableApplet()){
					fn();
				}
				if(me.isAppletReady()){
					fn();
				}
				if(!isAppletCreated){
					me.createAppletCscm();
					isAppletCreated = true;
				}
			}				
		},1000);
	};
	this.isEnableApplet = function(){//浏览器是否支持applet
	};
	this.isAppletReady = function(){//applet是否已准备好,并可以调用
	};
	this.createAppletCscm = function(){//是否已创建了applet标签
	};
});
 
                    
                     
                    
                 
                    
                 
                
            
         
         浙公网安备 33010602011771号
浙公网安备 33010602011771号