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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T10:46:59+00:00 2026-06-10T10:46:59+00:00

We habe to use an old Dojo Version 1.1.x, our problem is to find

  • 0

We habe to use an old Dojo Version 1.1.x, our problem is to find an event fired when an Tab is changed (user leaving the tab).

Scenario: There is a Form inside an Tab, data is edited and the tab is left without saving, now we are looking for an way to prevent this.

    dojo.connect(this.myTabPoint, "onShow", function(evt){
        alert('X');
    });

Works fine, but so we have to implement the check on every other tab (;

  • 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-10T10:47:00+00:00Added an answer on June 10, 2026 at 10:47 am

    In Dojo 1.1.2 there is a method _hideChild(/*Widget*/ page) in dijit.layout.StackContainer (i.e. the superclass of dijit.layout.TabContainer), which will invoke onHide method of page/tab (e.g. ContentPane) if it exists.

    The problem is there is no onHide method in dijit.layout.ContentPane, so you should add onHide stub method to ContentPane somewhere early in your code:

    dojo.extend(dijit.layout.ContentPane, {
        onHide: function() {
            // stub method
        }
    });
    

    Then all you need to do is dojo.connect to onHide method on a particular tab/ContentPane:

    dojo.connect(dijit.byId("tab1"), "onHide", function() {
        console.log("tab1 is hidden now");
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I habe a problem with my latest Liferay Portlet or rather a JSP I'm
I habe a few million objects hanging around in memory. I want to find
My aim is to habe a listing of all wave files in a specific
I have my App published as a free and pro version to the android
Our software shop does a big enterprisey system and one of its part is
I habe a main table that i select from and a table with subelements
I did a research on web and cannot find anything so maybe you know
i habe many entries in excell ( more than 3000 ). actually their are
I habe read here about defining method for a Javascript class Advantages of using
I have installed the Checkstyle plugin for Eclipse. When i habe writen now 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.