Thanks for you reply.
I've never heard about phantomjs before so I'll take a look at that because I don´t know how it works.
I've tried to do it using localstorage but in my particular case I load the response that I get from the server into a store on this way:
Code:
loginStore.load({
params:{
login: form['login'],
clave: form['clave']
},
scope: this,
callback : function(records, operation, success) {
console.log('LoginController:Login:callback');
console.log('JSON returned');
console.log(arguments);
Ext.Viewport.setMasked({
xtype: 'loadmask',
message: 'Cargando...'
});
if (success==true) {
console.log('LoginController:Login:callback:Login Ok');
//Here is where I'd like to use the localstorage in order to remember the user and password but it //doesn't work inside the callback function of another store.
//Load a new view
Ext.Viewport.setActiveItem({
xtype: 'menuview'
});
}
else {
console.log('LoginController:Login:callback:Login failed');
//Quitar el loadmask
Ext.Viewport.setMasked(false);
Ext.Msg.alert('Error de login', 'El nombre de usuario o la contraseña son incorrectos');
}
}
});
}