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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T19:47:28+00:00 2026-06-05T19:47:28+00:00

<div dojoType=dojo.Dialog id=alarmCatDialog bgColor=#FFFFFF bgOpacity=0.4 toggle=standard> <div class=’dijitInline’> <input type=’input’ class=’dateWidgetInput’ dojoAttachPoint=’numberOfDateNode’ selected=true />

  • 0
<div dojoType="dojo.Dialog" id="alarmCatDialog" bgColor="#FFFFFF" 
     bgOpacity="0.4" toggle="standard">
   <div class='dijitInline'>
       <input type='input' class='dateWidgetInput' 
        dojoAttachPoint='numberOfDateNode' selected="true" />
</div>

how to show this dialog I tried dijit.byId('alarmCatDialog').show();

The above code is a template and I called dijit.byId('alarmCatDialog').show() from the .js file .

  • 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-05T19:47:29+00:00Added an answer on June 5, 2026 at 7:47 pm

    dojoAttachPoint is used in a template and can be accessed in the widget using the value of the attribute.

    So if the html that you posted is used in a widget template, then you should use dojoAttachPoint. In the js file for the widget:

    dojo.declare("MyWidget", [dijit._Widget, dijit._Templated], {
    
      alarmCatDialog: null, // the dialog widget will be attached to this field.
    
      templateString: dojo.cache(...), 
    
      widgetsInTemplate: true,
    
      postCreate: function() {
        this.inherited(arguments);
    
        this.alarmCatDialog.show();
      }
    });
    

    You should not use id within widgets, because ids must be unique across all dom nodes. Using it within a widgets limits the use of your widget to once on a page.

    Also since you have widgets in your template, you should use widgetsInTemplate: true

    http://dojotoolkit.org/reference-guide/1.7/dijit/_Templated.html#widgetsintemplate

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

Sidebar

Related Questions

I've created a dialog in dojo with a few input fields. Based upon a
How to add vertical scrollbar to dojox.grid.DataGrid ? <div id=system_status > <div dojoType=dojo.data.ItemFileReadStore jsId=system_flags
I have the following declarative js/dojo code running properly in Chrome: <div dojoType=dijit.form.TextBox> <script
I have the following code: <div dojoType=dijit.layout.ContentPane id=filterForm style=padding: 3px> <form dojoType=dijit.form.Form> <input dojoType=dijit.form.TextBox
struct Div { int i; int j; }; class A { public: A(); Div&
My div with class name 'header-body-right' doesn't seem to be floating to the left
I would like to show a drop down dialog when I click my link/div.
dojo.addOnLoad(function(){ var jsonStore = new dojo.data.ItemFileReadStore({url:http://localhost:8080/Sai/samu}); }); <div dojoType=dijit.form.FilteringSelect store=jsonStore required=true id=MyId ></div> I
<script type=text/javascript> dojo.ready(function(){ var dataStore; var grid; dojo.xhrGet({ url: /mediation1.0.1/processConfig/getAll, handleAs: json, headers:{Accept :
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

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.