Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7932483
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T21:02:06+00:00 2026-06-03T21:02:06+00:00

The following code is part from my Controller class; 1.) When the code enters

  • 0

The following code is part from my Controller class;

1.) When the code enters the Success or Failure blocks, i need the program to navigate to another view, which will show the Registration View or Information View.

 Ext.Ajax.request({
                        url: 'http://call.com/the_webservice',
                        params : values,

                        failure: function (response) {
                        var text = response.responseText;
                         // SHOW SIGN UP SCREEN

                        },                              success: function (response) {
                        var text = response.responseText;
                         // GO TO ANOTHER VIEW AND IT WILL SHOW THE USER WITH SOME INFORMATION

                        }

                        });

UPDATE

In app.js

views: ['Main','HomePage','Register'],

and

launch: function() {

        // Destroy the #appLoadingIndicator element
        Ext.fly('appLoadingIndicator').destroy();

        // Initialize the main view
        Ext.Viewport.add(Ext.create('app.view.Main'));

                Ext.Viewport.add(app.view.Register);

    },

Then in the ControllerPage.js on button press…

success: function (response) {
                            var text = response.responseText;
                            var result = Ext.decode(response.responseText);
                            Ext.Viewport.setActiveItem(0);

                             console.log("success");

                            }

the console log, success gets printed, but the view doesn’t navigate to the Register View

UPDATE 2

I have not used tabPanel, In my code i have used tabBarPosition: 'bottom', to display tabs bottom of the screen. Can you show me how to navigate between views, which includes the tabbarpanel as well. The following code is my Main.js, and this is where i have included tabs.

Ext.define("app.view.Main", {
    extend: 'Ext.tab.Panel',


    config: {
        tabBarPosition: 'bottom',

        items: [
            {
                xtype:'formReq'

            }
        ]
    }

});
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T21:02:08+00:00Added an answer on June 3, 2026 at 9:02 pm

    Your question is not very precise.
    Nevertheless, if you are asking how to navigate between pages, it all depends how they are set up.
    Assuming you added your two views (RegistrationView and InformationView) to the app viewport (Ext.ViewPort):

    Ext.Viewport.add(MyApp.view.RegistrationView)
    Ext.Viewport.add(MyApp.view.InformationView)
    

    then all you have to do is the following:

    Ext.Ajax.request({
                        url: 'http://call.com/the_webservice',
                        params : values,
    
                        failure: function (response) {
                        var text = response.responseText;
                        Ext.ViewPort.setActiveItem(0);
    
                        },                              
                        success: function (response) {
    
                        var text = response.responseText;
                        Ext.ViewPort.setActiveItem(1);
    });
    

    This is just one way of doing it (maybe not the best).
    hope this helps.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using following code to get the controller/action information from RouteData RouteData route =
I'm getting a strange nil problem with the following code. The view (part of
i have following captcha code: <?php class CaptchaView extends View { private $fontsDir =
I am using the following code as part of an autocomplete script to avoid
Using linkedin-j , I have the following code in one part of my application
I have the following code, which is run every 10ms as part of a
Google optimizer includes the following snippet as part of their conversion code. Unfortunately, the
Following code is from a sample of playframework-2.0: /** * Display the dashboard. */
Following code is to save image took from camera into photo album. if ([mediaType
The following code is part of a WCF service. Will eventWatcher take up a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.