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

  • Home
  • SEARCH
  • 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 4020076
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T10:11:00+00:00 2026-05-20T10:11:00+00:00

i use dojo tab container and content pane to set up a search dialogue

  • 0

i use dojo tab container and content pane to set up a search dialogue in all pages of my app. But it gives out an error “Tried to register widget with id==globsearchpkg but that id is already registered” in those pages which have a dojo date text box along with the tab container. I use Zend_Dojo_Form_Element_DateTextBox for creating the date text box. I use the following code for my tabcontainer:

<div id="globalsearchdialogue" dojoType="dijit.Dialog" title="Global Search" style="display:none" >
<div dojoType="dijit.layout.TabContainer" style="width: 500px; height: 200px;" id="globsearchtabs">


    <div dojoType="dijit.layout.ContentPane" title="Search Packages" id="globsearchpkg"> 
      //First form here
    </div>

    <div dojoType="dijit.layout.ContentPane" title="Search Books" id="globsearchbook"> 
     //Second form here
    </div>
</div>

When i remove the date text box from the pages where the error comes up, it works fine. And if i remove the two dijit.layout.ContentPanes, it work fine. Also even with this error the tab containers and date text box works fine. The problem is that other components like context menu wont work properly once this error comes up. Any ideas?

  • 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-20T10:11:01+00:00Added an answer on May 20, 2026 at 10:11 am

    That means you’re adding a widget more than once, or adding a widget once, removing it in the DOM only and then trying to re-add it.

    If you genuinely want the widget more than once on the page, you have to have different IDs for each instance (an ID is unique)

    If you only want a single instance on your page at once, do you remove the search dialog from the page and then try and reinclude it later?

    If so, you’re probably removing it by calling parentNode.innerHTML = ''; or using dojo.empty(parentNode) or similar? Instead you should be calling dijit.byId('globalsearchdialogue').destroyRecursive().

    That call will both destroy the DOM nodes associated with the widget, and clean up the JS code as well. Remember, dijits are combinations of both HTML and Javascript code, so you have to clean up both parts properly!

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

Sidebar

Related Questions

When I use an import such as <script type=text/javascript src=http://o.aolcdn.com/dojo/1.2.3/dojo/dojo.xd.js djConfig=parseOnLoad:true, isDebug: true></script> I
I use Firebug and the Mozilla JS console heavily, but every now and then
I use Dojo 1.3.1, essentially under FF3.5 for now. I have a dnd source
I'm starting to use Dojo; this is (essentially) my introduction to AJAX. We have
I'm trying to use Dojo (1.3) checkBoxes to make columns appear/hide in a Dojo
Can I use Dojo in an business application free of cost?
I'm trying to use Dojo dnd Source(1.4.2) to create an interface where I can
My question is: can we use dojo.xhrPost to post some Json data? More detail:
I am building a web application using Grails. I decided to use dojo and
Is there a way to wipe out all CSS rules once style sheets have

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.