PDA

View Full Version : Uncaught error



hwanile
8 Jul 2013, 1:13 PM
Hi there. I am trying to hide some of the fields after user login in the application, but I can not see to make it work. through is the fuction that I created when user tap the log in button, another screen has to pop up and hide the rest. Any help will be appreciated

onLogInButtonTap :

function () {


var me = this,
usernameField = me.down(

"userNameTextField"),
passwordField = me.down(

"passwordTextField"),
label = me.down(

"signInFailedLabel");
label.hide();
username = usernameField.getValue(),
password = passwordField.getValue();



//using delayed task to give the hide animation above time to finish before executing the next steps.


var task = Ext.create('Ext.util.DelayedTask', function () {
label.setHtml(

'');
me.fireEvent(

'signInCommand', me, username, password);
usernameField.setValue(

'');
passwordField.setValue(

'');
});
task.delay(500);
}

slemmon
10 Jul 2013, 2:04 PM
Is this for a Sencha Touch project? (posted in an ExtJS forum)