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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T21:54:11+00:00 2026-05-26T21:54:11+00:00

I have a container element in which I create on the fly/place() a form,

  • 0

I have a container element in which I create on the fly/place() a form, then another one..etc.
My goal is to switch between them i.e. hide all and show only the active form.
It hides alright, but I can’t show the active back.

I tried using:

  1. .style.display(none<->block) and visibility(visibility<->hidden)
  2. dojo.style(…)
  3. resize() and startup() after the changes
  4. Several other variants i found on Internet from old dojo’s

Nothing works.
/I need it to work with display, so that it does not occupy space./

Can you tell me what is the correct way to show and hide with dojo()

Also looked at this one :
How do I dynamically show and hide an entire TabContainer using DOJO?

Does not work.

The pseudo code I use is something like this :
….

//find or create the FORM element
form =  dijit.byId(...);
if(typeof form != 'object') {
  form = dojo.create('form', ....);
  dojo.place(form,'containerx','last');
}
//hide all
dojo.query('#containerx > *').forEach(function(item){
  dojo.style(item, 'visibility','hidden');// and all other variants i mentioned
})
//show only the current form
dojo.style(form, 'visibility','visible');
//if the dojo form obj was already created, then skip it
if (this.form_obj) return;

....build the form and the elements....

this.form_obj.startup()

thanx

  • 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-26T21:54:12+00:00Added an answer on May 26, 2026 at 9:54 pm

    I just answered the question in that thread you referenced in your question a few minutes ago. Basically it involved getting jQuery involved. Works great for me. I have all the tabs created statically (as opposed to programatically) and I’m able to manipulate whether they are shown or hidden with the help on jQuery. All the code any everything is in my post here:

    How do I dynamically show and hide an entire TabContainer using DOJO?

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

Sidebar

Related Questions

I have a container element which I need to resize as its contents change.
I have one std::list<> container and these threads: One writer thread which adds elements
I have a Canvas element, contained within a ScrollViewer, which I'm zooming using ScaleTransform.
I have an element which may contain very big amounts of data, but I
I have foreach function which calls specified function on every element which it contains.
I have a WSDL which contains 3 schemas inside it's types element. The schemas
I have a form which contains a lot of elements, my DB guy has
I have a container element that you can drag objects around in. I want
Suppose I have an element called #container-main . How do I make that display:none
i have some element in my container and want to save all properties of

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.