-
7 Sep 2012 6:54 AM #1
Answered: Automatic Change View
Answered: Automatic Change View
Hello,
I have a question: how I have 2 views, how can switch to another view automatically? after some defined seconds?
Best regards
Mario
-
Best Answer Posted by Schildi
Hi marioferrara,
assumed you already have your 2 views added to the viewport, you could do something like
Best regards,Code:var duration = 2000; // = 2 seconds window.setTimeout(function() { Ext.Viewport.setActiveItem(yourSecondViewsXtype); }, duration);
Schildi
-
7 Sep 2012 8:35 AM #2
Hi marioferrara,
assumed you already have your 2 views added to the viewport, you could do something like
Best regards,Code:var duration = 2000; // = 2 seconds window.setTimeout(function() { Ext.Viewport.setActiveItem(yourSecondViewsXtype); }, duration);
Schildi
-
7 Sep 2012 9:48 PM #3
Thank you. It works!
But now i have another problem:
this solution is correct but change my first view automatically.
I want that this change starts with a specific view: the third.
How can i do this?
Tnx a lot!
-
8 Sep 2012 10:53 PM #4
Hello,
I have tried others solutions, but do not works..
Can you help me?
Tnx a lot!
-
9 Sep 2012 12:47 AM #5
It works!
Just put the code in the correct controller action!
Many thanks.


Reply With Quote