Hi Darren, thanks for your reply, I really appreciate it. I tried a few version of your suggestion but to no avail. Here's my code, perhaps it can shed some light:
Code:
var msg = Ext.Msg.prompt("Send Database contents", "Please enter the admin password", function (btn, inputValue) {
if (btn == "ok") {
Ext.Ajax.request({
url: 'email-database.php?password=' + inputValue
});
}
});
And with your suggestion:
Code:
var msg = Ext.Msg.prompt({
title: "Email Database contents",
message: "Please enter the admin password",
fn: function (btn, inputValue) {
if (btn == "ok") {
Ext.Ajax.request({
url: 'email-database.php?password=' + inputValue
});
}
},
config: {
prompt: {
xtype: 'passwordfield'
}
}
});
Finally I took a stab at this:
Code:
msg.getPrompt().config.component.type = 'password';
Still no joy. Any thoughts based on what I'm doing above?