View Full Version : ext.msg.prompt wait for correct value

15 Dec 2010, 12:30 AM
Hi, i've builded an app with a prompt for user password, and i want that if i don't digit the correct
password, when i click ok, i update msg text with 'wrong password' and the prompt is waiting for another
one, but i don't know how, because when i click ok, the prompt always close.
here is my code:

login_fn = function() {
Ext.Msg.prompt("Login", "Please insert your password",
function(buttonid, value) {
if (buttonid == "ok") {
if (value == "1234") {
people_list.showBy(people_btn, 'fade');
login = 1;
user = value;
} else {
Ext.Msg.updateText('wrong password');

thanks to all