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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T02:07:51+00:00 2026-06-18T02:07:51+00:00

Hi I am looking for tutorial based on Dojo 1.8. What I am looking

  • 0

Hi I am looking for tutorial based on Dojo 1.8.
What I am looking for is:- create and instantiate widget pragmatically after dojo page fully loaded and parsed, triggered after dojo/on button. I am not sure of which tutorial in Dojo website, for me to learn.

Please advise.
Thanks in advance.
Clement

  • 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-18T02:07:53+00:00Added an answer on June 18, 2026 at 2:07 am

    There isn’t one tutorial that fully answer all your question but the following will be helpful:

    • Dojo Events tutorial and dojo/on reference
    • dojo/ready reference
    • dojo/parser reference

    To capture both the full loading of the page and parsing you need to use a combination of dojo/ready and dojo/parser. (I’m assuming that the parsing you refer to is the dojo widget parser, rather than the standard browser parsing of HTML).

    To run code after parsing you’ll need to add parseOnLoad: false to your dojoConfig and run the parser manually; otherwise, there is no way of capturing when it is complete.

    <script type="text/javascript" async="true">
        require([
            "dojo/ready",
            "dojo/parser",
            "dojo/on,
            "dojo/query"
        ], function(
            ready, parser, on, $
        ){
            ready(function(){
                // Only run after the page is fully loaded
                parser.parse().then(function(instances){
                    // Only run after parser has parsed the page
    
                    var myButton = $("#myButtonid");  // Find your button
                    if(myButton.length > 0){ // Check button is found
                        on(myButton[0], "click", function(evt){
    
                            // ... add your code here to create and
                            //    instantiate widget 
    
                        });
                    }
                });
            });
        }
    </script>
    

    Don’t forget that you need to turn off automatic parsing of widgets in you dojoConfig, hence, something like this (in the head):

    <script type="text/javascript">
        dojoConfig= {
            "parseOnLoad": false,
            "async": true
            // ...other settings
        };
    </script>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am looking for a tutorial how to create my own user interface(like using
I have been looking for weeks for an OBJ-C based tutorial on how to
I am looking for a tutorial to achieve an effect that is very easy
I am looking for a tutorial which will guide me to style HTML pages
I'm looking for a tutorial that explains creating custom usercontrols in WPF. I want
I'm looking for a tutorial explaining how to work with these 3 technologies, found
I am looking at this tutorial http://www.codeproject.com/KB/cpp/authforwebservices.aspx and I am wondering what the reason
I am looking for some tutorial regarding the PostMessage functionality in Windows SDK. I
I'm looking for good tutorial or really simple code to integrate mongokit and django
I was looking at a tutorial on Regex. It was about how to 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.