PDA

View Full Version : [2.0a1][SOLVED] - DatePicker renderTo config produces an error:



jay@moduscreate.com
2 Oct 2007, 6:34 AM
Using ext-all.js, line 84, the date picker declaration produces an error.



myDatePicker = new Ext.DatePicker({
renderTo: 'myDiv',
handler : function(dp, date){
Ext.example.msg('Date Selected', 'You chose {0}.', date.format('M j, Y'));
}
});


The following works:


myDatePicker = new Ext.DatePicker({
handler : function(dp, date){
Ext.example.msg('Date Selected', 'You chose {0}.', date.format('M j, Y'));
}
});
myDatePicker.render('myDiv');

jsakalos
2 Oct 2007, 12:51 PM
Notifying Jack on this.

cyberwizzard
9 Oct 2007, 4:58 AM
I'd like to comfirm this issue. The error originated by some variable called W.

On a side note: ExtJS rocks! :D

jack.slocum
9 Oct 2007, 5:05 AM
This is fixed in SVN. Thanks.