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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T03:17:49+00:00 2026-06-08T03:17:49+00:00

I am trying to display an alert box using Dojo. The alert box behavior

  • 0

I am trying to display an alert box using Dojo. The alert box behavior will be modeless. All work is done through a Javascript which has functions to addScript/CSS and these functions work fine. Though i am not bale to display alert using Dojo. Here is my code:

//DojoThemes and Libraries

addStylesheet('http://ajax.googleapis.com/ajax/libs/dojo/1.5/dijit/themes/claro/claro.css');
    addStylesheet('http://ajax.googleapis.com/ajax/libs/dojo/1.5/dijit/themes/tundra/tundra.css');
    addScript('http://ajax.googleapis.com/ajax/libs/dojo/1.5/dojo/dojo.js');

    //dojo.require("dojo.ready");
    //dojo.require("dijit.Dialog");


    var dojoDialogBox = document.createElement('script');
    dojoDialogBox.innerHTML = 'require(["dojo/ready", "dijit/Dialog"], function(ready, Dialog){ ready(function(){ myDialog = new Dialog({ title: "My Dialog", content: "Test content.", style: "width: 300px" }); }); });';
    document.getElementsByTagName('head')[0].appendChild(dojoDialogBox);



    function myFuncc() {
        myDialog.show();
    }
  • 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-08T03:17:51+00:00Added an answer on June 8, 2026 at 3:17 am
    <script>
      addStylesheet('http://ajax.googleapis.com/ajax/libs/dojo/1.5/dijit/themes/claro/claro.css');
      addStylesheet('http://ajax.googleapis.com/ajax/libs/dojo/1.5/dijit/themes/tundra/tundra.css');
      addScript('http://ajax.googleapis.com/ajax/libs/dojo/1.5/dojo/dojo.js');
    </script>
    <!--
         closing script tag here will allow dojo.js script 
         tag to get written - otherwise
         'require' is an undefined
    -->
    <script>
      require(["dijit/Dialog", "dojo/domReady!"], function(Dialog){
        myDialog = new Dialog({
             title: "My Dialog",
    
             // since we are inside a require(function() {}) closure, lets set an ID
             // so that externally (from outside this require function) we can get the dialog
    
             id:'myDialog',
             content: "Test content.",
             style: "width: 300px"
        });
      });
      function myFuncc() {
          dijit.byId('myDialog').show();
      }
    </script>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to display an alert box onpageload which calls a previously defined
The alert box will display nothing, and not return any data from any URL
Trying to display current time with PHP (using this ): $date = date('m/d/Y h:i:s
I am trying to display data that I am getting from server through json.
I'm trying to display all the 'legs' for each of my 'trips' in my
I am trying to display all possible values for a sub-property. Below I am
I am trying to use the following javascript code to alert the user when
I am trying to create a customized messagebox using javascript but not getting too
I was trying to do this in an alert box only to find out
In the following code I am trying to get the select box to display

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.