IE 브라우저:'이벤트스'가 비어 있거나 대상이 아님/'render'가 비어 있거나 대상이 아님

tt 개발 중 화성 브라우저는 오류를 보고하지 않지만 IE 브라우저에서'이벤트스'가 비어 있거나 대상이 아닙니다. IE는 Firebug로 오류를 포착할 수 없기 때문에 코드량이 많을 때alert()로 찾기 어려우므로 코드 테스트를 조금씩 삭제할 수 있습니다.
IE에서 이 오류를 보고하면 대부분 items의 마지막 항목에 쉼표가 추가됩니다.
예:
Ext.onReady(function(){ 
                          new Ext.Panel({ 
                                          renderTo:"hello", 
                                          tltie:" ", 
                                          width:500, 
                                          height:200, 
                                          layout:"accordion", 
                                          layoutConfig:{ 
                                                        animate:true 
                                          }, 
                                          items:[{title:" 1",html:" 1 "}, 
                                                {title:" 2",html:" 2 "}, 
                                                {title:" 3",html:" 3 "}, 
                                                  ] 
                                        }); 
    
    }); 

items의 마지막 항목
{title:" 3",html:" 3 "}, 

쉼표 빼면 OK.
2.'render'가 비어 있거나 대상이 아닙니다.
이 오류도 IE에서 불여우에만 나타나고 나타나지 않습니다. 마찬가지로 이 오류도 쉼표가 많아서 일어난 것입니다. 다만 button에 많이 있을 뿐입니다.
Ext.onReady(function(){ 
                          new Ext.Panel({ 
                                          renderTo:"hello", 
                                          tltie:" ", 
                                          width:500, 
                                          height:200, 
                                          layout:"accordion", 
                                          layoutConfig:{ 
                                                        animate:true 
                                          }, 
                                          items:[{title:" 1",html:" 1 "}
                                                  ] ,
                                         buttons : [ 
					     {text : " ", 
					      iconCls : 'saveIconCss',
					      handler :function(){
						  this.save;
					      },
					      scope : this},
					    {text : " ", 
					      iconCls : 'closeIconCss',
					      handler :this.closeWin,
					      scope : this},
			                 ]
                                     }); 
    
    }); 

buttons의 마지막 항목
{text : " ", 
iconCls : 'closeIconCss',
handler :this.closeWin,
scope : this},

쉼표를 빼주시면 됩니다.
 
 

좋은 웹페이지 즐겨찾기