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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T11:36:07+00:00 2026-06-09T11:36:07+00:00

I have a question for all the html and dojo people. I want when

  • 0

I have a question for all the html and dojo people. I want when user hits the webpage, to land on dojo dialog window on some solid background. After couple of dialogs where the users fills some information I will load all dojo widgets and display the underling page. I also want to try to load dojo in the background if possible. I found this article: http://raventools.com/blog/create-a-modal-dialog-using-css-and-javascript/, but if I place the widget in the overly div it does not show the widget, only if I have some text or links. I tried to apply the same css rules on my widget and also included it in the js code but still nothing. I will be thankful for some other approach if possible too.

All I am trying to do is have some dialogs on plain background in the beginning, after the user is ready I will show the page with map and widgits.
Thanks a lot in advance

The dojo inside the div:

dojo.require("dijit.Dialog");
<script src="//ajax.googleapis.com/ajax/libs/dojo/1.9.3/dojo/dojo.js.uncompressed.js" djConfig="parseOnLoad:true"></script>
<div id="overlay">
  <div>
    <div data-dojo-type="dijit.Dialog" style="width:100px; height:100px; background-color:#000077;" id="first">

      <button onclick="hideDialog();">
        Delete
      </button>
      <button onclick="cancel();">
        Cancel
      </button>
    </div>

    <a href='#' onclick='overlay()'>close</a>
  </div>
</div>
  • 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-09T11:36:09+00:00Added an answer on June 9, 2026 at 11:36 am

    There’s an easy method for this which simply involves ‘wrapping’ you ‘real’ page within a hidden element. Since youre using declarative markup – you will need the domReady event (i.e. body.onload in general) to finish in order for a dialog to be presented. Beforehand, the dojo.parser is not run and the dojo-types will simply be dom nodes.

    So, try setting up as such:

    dojo.require("dijit.Dialog");
    <script src="//ajax.googleapis.com/ajax/libs/dojo/1.9.3/dojo/dojo.js.uncompressed.js" djConfig="parseOnLoad:true"></script>
    
    <body class="dijitThemeHere" style="display:none">
      <div id="wrapper" class="fakeBodyWrapper">
        Here is my homepage It has a blah blah blah - select you options on how page should render in dialog (this will never be visible to user)
      </div>
      <div data-dojo-type="dijit.Dialog" style="width:100px; height:100px; background-color:#000077;" id="first">
        This is my initial dialog contents
      </div>
      <script type="text/javascript">
        // dojo.js needs to be loaded here ofc
         // will use opacity - via dojo/dom-style to avoid having css hacks
         // doing so, will render the box model and calculate 
         // a width/height/position as opposed to setting display:none
         //
         // you should realize that any <script> tags above this
         // will delay hiding wrapper - so note that body has display none until now
        dojo.style(dojo.body(), "display", "");
        dojo.style(dojo.byId('wrapper'), "opacity", "0");
        dojo.addOnLoad(function() {
          dijit.byId('first').show();
          dijit.byId('first').onHide = function() {
            dojo.style(dojo.byId('wrapper'), "opacity", 1);
          };
        })
      </script>
    </body>
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have question about XSLT1.0. The task is to write out in HTML all
I just have a question thats been pozzling my head all morning. I want
Dear all, I have a question about Facebook Page: ( NOT user profile page,
I have a question about how to present some structured data using HTML. I
Hello all,I'm a junior on html,I have a question about css position : first
Cosmetic question: I have a html element containing possible dimensions for some embedded images,
hi all i have a question about hiding records in crystal report and i
Dear all,Now i have this question in my java program,I think it should be
Greetings all, I have a question. On my MOSS 2007 dev box, I created
I have a question concerning Core Data and how, if at all, Entities get

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.