Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to run dojo from my own server (apache)..?
    text
    copied!<p>I have downloaded dojo build, now I have an doubt, in the below example code, I am using "dojo.js.uncompressed.js" as a start of source file, is it right? Just I want to display a button in the web page. Which one is the start file? in dojo library.</p> <pre><code>&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"&gt; &lt;html dir="ltr"&gt; &lt;head&gt; &lt;style type="text/css"&gt; body, html { font-family:helvetica,arial,sans-serif; font-size:90%; } &lt;/style&gt; &lt;script src="../dojo/lib/dojo/dojo.js.uncompressed.js" djConfig="parseOnLoad: true"&gt; &lt;/script&gt; &lt;script type="text/javascript"&gt; dojo.require("dijit.form.Button"); dojo.addOnLoad(function() { // Create a button programmatically: var button = new dijit.form.Button({ label: "Click me!", onClick: function() { // Do something: dojo.byId("result1").innerHTML += "Thank you! "; } }, "progButtonNode"); }); &lt;/script&gt; &lt;link rel="stylesheet" type="text/css" href="../dojo/lib/dijit/themes/claro/claro.css" /&gt; &lt;/head&gt; &lt;body class=" claro "&gt; &lt;button id="progButtonNode" type="button"&gt; &lt;/button&gt; &lt;div id="result1"&gt; &lt;/div&gt; &lt;!-- NOTE: the following script tag is not intended for usage in real world!! it is part of the CodeGlass and you should just remove it when you use the code --&gt; &lt;script type="text/javascript"&gt; dojo.addOnLoad(function() { if (document.pub) { document.pub(); } }); &lt;/script&gt; &lt;/body&gt; &lt;/html&gt; </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload