Dojo : HelloWorld

dojotest.html

<!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”>
     // a very common method of loading code onLoad
    var init = function(){
            console.log(“Hello World in Dojo!!”);   
    };
    dojo.addOnLoad(init);

    // and/or pass an anonymous function
    dojo.addOnLoad(function(){
            console.log(“Dojo Test!! “);
    });

    </script>

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

Advertisements

2 Responses

  1. It’s an amazing piece of writing in support of all the web users; they will obtain advantage from it I am sure.

  2. Your style is so unique compared to other people I’ve read stuff from. Thank you for posting when you have the opportunity, Guess I’ll just bookmark this web site.

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: