Dojo : require()

<!DOCTYPE html PUBLIC “-//W3C//DTD HTML 4.01//EN”
    “http://www.w3.org/TR/html4/strict.dtd”>
<html>
    <head>
        <title>Dojo</title>   
    <!– load the dojo toolkit base –>
    <script type=”text/javascript” src= “dojo/dojo/dojo.js”
        djConfig=”parseOnLoad:true, isDebug:true”></script>
    <script type=”text/javascript”>
        dojo.require(“dijit.form.Button”);
        dojo.require(“dijit.TitlePane”);
        dojo.addOnLoad(function(){
          dojo.byId(“testHeading”).innerHTML = “See!! New Heading is here”;
          console.log(“Execution Sequence: 1. require()  2. onLoad “);
         }); 

    </script>
    <style type=”text/css”>
    /* CSS  */   
    </style>   
    </head>
    <body>
        <h1 id=”testHeading”>Dojo test</h1>       
        <div id=”contentNode”>
        <p></p>
    </div>
    </body>
</html>

Advertisements

One Response

  1. When someone writes an piece of writing he/she retains the thought of a user in his/her mind that
    how a user can be aware of it. Therefore that’s why this post is amazing. Thanks!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: