Getting StartedThere are two versions of PlugD. Starting with Dojo 1.3.0, PlugD is provided as a replacement file for dojo.js (branded with the dev tag "p") as well as an add-on to load after a clean dojo.js. console.log(dojo.version.toString()); // 1.3.0-p Previous versions of plugd were available as a separate file, and had to be included in the page after a dojo.js: <html>
<head>
<script src="http://tinyurl.com/dojo-12" djConfig="conflict:true"></script>
<script src="base.min.js"></script>
</head>
<body>
<h1>Welcome to <em>plugd</em></h1>
</body>
</html> note, the replacement dojo.js is not available on either the AOL or Google CDN, though the single file plugin can be loaded after including a clean dojo.js from a CDN. First StepsOnce you have plugd loaded in the page, use it just as you would Dojo. Start everything off from within a load function, in a script somewhere after your dojo.js script tag: <script>
dojo.load(function(){
// the dom is ready! I can start hacking now!
});
</script>
|