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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T16:52:00+00:00 2026-05-24T16:52:00+00:00

i dev a Firefox extension and i try to add a tabpanel in a

  • 0

i dev a Firefox extension and i try to add a tabpanel in a tabbox (xul).

The tabbox:

<tabbox id="tbDashboard" selectedIndex="0" >
        <tabs><!-- list of tabs -->
            <tab label="Overview"/> <!-- default tab -->
            <tab label="test"/>
        </tabs>

        <tabpanels><!-- list of contents -->
            <tabpanel ><!-- default tab's content -->
                <box orient="horizontal" flex="1">
                    <description style="font-size: 24pt;">overview</description>
                </box>
            </tabpanel>
            <tabpanel ><!-- test tab's content -->
                <box orient="horizontal" flex="1">
                    <description style="font-size: 24pt;">test</description>
                </box>
            </tabpanel>
        </tabpanel>
    </tabpanels>
</tabbox>

I can add a new tab in JS with:

document.getElementById("tbDashboard")["tabs"].appendItem("popo");

The tab is appears but the tab page is empty, i tried to:

  1. use appendItem with a second parameter => don’t work
  2. document.getElementById(“tbDashboard”)[“tabpanels”].appendItem(…) => fail

Someone have an idea to create the tab page (a tabpanel) ??

thx

  • 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-24T16:52:01+00:00Added an answer on May 24, 2026 at 4:52 pm

    tabs.appendItem() is merely a convenient helper to create a tab element. It is essentially the same as:

    var tabbox = document.getElementById("tbDashboard");
    var tab = document.createElement("tab");
    tab.textContent = "popo";
    tabbox.tabs.appendChild(tab);
    

    You can create and add a tabpanel element in the same way (here with a text box as only contents):

    var panel = document.createElement("tabpanel");
    panel.appendChild(document.createElement("textbox"));
    tabbox.tabpanels.appendChild(panel);
    

    For a tutorial on DOM manipulation see https://developer.mozilla.org/en/XUL_Tutorial/Modifying_a_XUL_Interface.

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

Sidebar

Related Questions

I'm building this site http://www.philgoulet.com/dev/michele/index.php and it looks good in firefox, chrome, IE8, but
I normally do my web dev using Firefox - I periodically test for cross
The web dev toolbar for Firefox is quite an impressive tool. What I am
I have Firefox as my default browser on my dev machine and when I
On MDN , the phrase Add-on Manager-enabled XUL application is introduced. By dragging a
I' try to drawing canvas using example2 taken from http://dev.opera.com/articles/view/html5-canvas-painting/ . It works on
What's up with my Footer CSS ? Using the Web Dev toolbar in Firefox
dev%40bionic%2Dcomms%2Eco%2Euk I want to turn the above back in to readable text. Can anyone
Dev-cpp comes with an example program Jackpot, which has a GetResults function in it:
Our dev shop currently uses Visual SourceSafe. We all know how that could end

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.