PDA

View Full Version : Message box error



ataker98
21 May 2012, 4:43 AM
hi, i'm having problem with Msg.confirm, I used this code that when click on delete button will show the message box with yes and no buttons, if yes is clicked will show contact list :


delContact: function() {
Ext.Msg.confirm("Delete Contact", "Are you sure you want to delete it?",
function(btn){

if(btn == 'yes'){
this.showContactList();
}
},
this
);
}


but I getting this error Using Ext.Msg without requiring Ext.MessageBox
Has someone had this problem? or the code is wrong, how can I fix ?

friend
21 May 2012, 5:39 AM
Add a 'requires' statement to the module which calls the messagebox or enable dynamic loading:



Ext.Loader.setConfig({
enabled: true
});