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 6991389
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T19:29:39+00:00 2026-05-27T19:29:39+00:00

I have created a Layout using ExtJs. It consists of a left menu and

  • 0

I have created a Layout using ExtJs. It consists of a left menu and a main tabbed panel (the main components I am using are: Ext.tree.Panel and Ext.tab.Panel inside a Ext.Viewport)

Once a menu element is clicked it is loaded (via Ajax POST) in a tab. This is made using jQuery.

Once a certain button (inside a tab) is clicked, I must load some more content via Ajax. My question is how to access Ext elements in the scope of the tabs (which are created using a PHP-based MVC).

By example, how could I do something like this?:

var tab = mainPanel.getActiveTab();
alert('Current tab: ' + tab.title);
  • 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-05-27T19:29:40+00:00Added an answer on May 27, 2026 at 7:29 pm

    If you have configured your Ext.tab.Panel with an id (e.g. id: tabPanel):

    {
    region: 'center',
    id: 'tabPanel',
    xtype: 'tabpanel',
    plugins: Ext.create('Ext.ux.TabReorderer')             
    }
    

    You can use tab = Ext.getCmp('tabPanel').getActiveTab() outside of Ext.onReady

    Ext.onReady doesn’t apply any scope it just delays loading the js it contains until the ExtJS library finishes loading.

    EDIT: And then of course you could do tab.title – I just noticed that .title is not listed as a property in the Ext.tab.Tab API doc but I tested it and it is the correct usage.

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

Sidebar

Related Questions

i have created application using layout font sizes in pixels font and other layout
I have created my entire website by using a main table, and having the
I am using ExtJS Forms. My form code is as follows: Ext.create('Ext.form.Panel', { width:
alt text http://img705.yfrog.com/img705/1337/layoutxt.jpg I already have this layout created using CSS, but its plagued
Hi all I have created layout using following code <?xml version=1.0 encoding=utf-8?> <LinearLayout xmlns:android=http://schemas.android.com/apk/res/android
I have created a layout using DIVs rather than tables. It seems to be
I have created a table layout in xml. At runtime, i am using a
I have created a table layout in xml. At runtime, i am using a
I have created a TableRow layout model which I'm using as a template for
I want to have a custom dialog (created using layout) in Preferences . What

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.