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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T16:08:52+00:00 2026-06-13T16:08:52+00:00

I am using DHTMLX tabs, in my case, initially my tab is in InActive

  • 0

I am using DHTMLX tabs, in my case, initially my tab is in InActive state. When user clicked initially the tab comes to Active and loading the content using setContentHref().

Again if I click on the same tab for second time I don’t want to display the content and the tab comes to initial state.

For this I have implemented like

tabbar.attachEvent("onTabClick", function (id, prevId) {
                    alert(id); alert(prevId);
                    if (id == prevId) {
                       tabbar.setTabInActive(id);
                       return true;
                    }
                });

but the tab does not come into the InActive state. Can you tell me how to do this?

  • 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-13T16:08:54+00:00Added an answer on June 13, 2026 at 4:08 pm

    onTabClick occurs before a tab is selected and setTabInActive doesn’t block selection. Therefore, you need to set onSelect handler, for example like so:

    var disabledTab;
    tabbar.attachEvent("onTabClick", function (id, prevId) {
        if (id == prevId) {
           tabbar.setTabInActive(id);
           disabledTab = id;
        }
    });
    tabbar.attachEvent("onSelect", function (id, prevId) {
        if (id == disabledTab) {
            return false;
        }
        disabledTab = null;
        return true
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using dhtmlx Gantt Chart UI component which have task list and graphical chart.
@using(Html.BeginForm(About, User, FormMethod.Post , new { id=aboutme})) { <fieldset> <ul> <li> <label class=block>About me</label>
Using Android TelephonyManager an application can obtain the state of data activity over the
Using WebViewBrush I can render web page content (it's screen shot) to e.g. Rectangle
I was using DHTMLX Scheduler in my MVC project. Everything is fine. But the
Using The Play Framework how easy would it be to allow an admin user
I'm using the DHTMLx Touch online editor I have a layout with 3 cells
Using the http://www.ifans.com/forums/showthread.php?t=132024 post from another question i am allowing the user to enter
Using CRM 4, I have an entity form that contains a tab with an
I am using DHTMLX javascript library to present a grid in a form. My

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.