bagusflyer
27 Dec 2011, 11:13 PM
I'm trying to create a modal message box for input password. Here is the code:
Ext.Msg.prompt("Password","Please input your password?", function (btn, text) {
if (btn == "ok" && text == mypassword )
valid = true;
});
There are two problems:
1. I can't input anything at all. When I move cursor to textbox, no matter what I key, it always has no response.
2. The prompt will return immediately instead of waiting for my callback function return
Any suggestions? Thanks
Ext.Msg.prompt("Password","Please input your password?", function (btn, text) {
if (btn == "ok" && text == mypassword )
valid = true;
});
There are two problems:
1. I can't input anything at all. When I move cursor to textbox, no matter what I key, it always has no response.
2. The prompt will return immediately instead of waiting for my callback function return
Any suggestions? Thanks