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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T09:02:08+00:00 2026-06-14T09:02:08+00:00

In Dojo, I am trying to extend dijit.Dialog using templates. When I instantiate it,

  • 0

In Dojo, I am trying to extend dijit.Dialog using templates. When I instantiate it, I get only the text in the dialog box, without the borders or close button. Is there some additional step I need to do to get it fully initialized?

My template is in template.html, it looks like so:

<div dojoType="dijit.Dialog" id="dynFilter" jsId="dynFilter">
"Dynamic Dialog"
</div>

Here is the dojo.declare:

dojo.declare(
    "template.dialog",                                  // class name
    [dijit._Widget, dijit._Templated, dijit.Dialog],    // parent classes
    {
    templateString : dojo.cache("autonomics", "template.html"),
    }
);

After I instantiate it, I call .startup(), which doesn’t seem to do anything, then .show(), which does place it on the page, missing most of its functionality.

var dialog = new template.dialog();
dialog.startup();
dialog.show();

What am I missing?

  • 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-14T09:02:09+00:00Added an answer on June 14, 2026 at 9:02 am

    You overwrite the template of the original dijit/Dialog when subclassing.

    Have a look to my answer to Dojo Dialog with confirmation button which solves the issue you are experiencing. Or go directly to working example at jsFiddle: http://jsfiddle.net/phusick/wkydY/

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

Sidebar

Related Questions

Im new to Dojo and im trying to make some ui, but only using
I'm trying to get a filtering select work with a Dojo enabled form using
I am trying to write my own Dojo/Dijit Editor Plugin. the only Information i
I am trying to display an alert box using Dojo. The alert box behavior
I am trying to implement a filteringselect(dojo) I am trying to get the values
I'm trying to get the dojo tree widget working. It works with a small
I am trying to get a dojo comboBox working in Zend, with the following
I'm trying to create a DOJO DataGrid populated using a dojo.data.ItemFileReadStore with very simple
I am trying append some XML retrieved via a dojo.XHRGet to a dijit.layout.ContentPane .
I'm new to Dojo, and I'm trying to get my head wrapped around some

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.