Change view in sencha touch 2
I had make a controller in sencha touch 2 in which i am performing an ajax request.
I want to change the view on suceess.
Currently i am using
var firststep = Ext.create('Myapp.view.Rangeselector'); Ext.getCmp('loginForm').destroy();
Ext.Viewport.add(firststep);
It is destroying loginForm but didn't load Rangeselector view.
Can anyone please give me a solution.
Change view in sencha touch 2
I had make a controller in sencha touch 2 in which i am performing an ajax request.
I want to change the view on suceess.
Currently i am using
var firststep = Ext.create('Myapp.view.Rangeselector');
Ext.getCmp('loginForm').destroy();
Ext.Viewport.add(firststep);
It is destroying loginForm but didn't load Rangeselector view.
Can anyone please give me a solution.
Thanks for reply mitchell,
I will take care in future and post only in one forum