PDA

View Full Version : [SOS] how to solve the HTML' button in IE7 and IE8 auto submit?



wwwtd
14 Mar 2011, 6:38 PM
hi:all

I have a problem in HTML button in IE7 and IE8 .

I change some code in datePicker as this:



if(this.showToday){
var today =(new Date()).format(this.format);
this.todayBtn = document.createElement("button");
this.todayBtn.HTML="today"
if(!Ext.isIE){
this.todayBtn.type="button";
}
Ext.flay(this.listEL).select('td.x-date-bottom',true).appendChild(this.todayBtn);
}



this code in IE7 and IE8 when click this button ,the page turn an white page, how to solve this problem Thank you!

wwwtd
15 Mar 2011, 12:16 AM
anybody can help me? Thank you!