Customized function loader : dojo basics « Dojo toolkit « JavaScript Tutorial






<html>
  <head>
    <script type="text/javascript">
      var djConfig = {
        baseScriptUri : "js/dojo/"
      };
    </script>
    <script type="text/javascript" src="js/dojo/dojo/dojo.js"></script>
    <script language="JavaScript" type="text/javascript">
      dojo.registerModulePath("dojo.java2s", "../../..");
      dojo.require("dojo.java2s.myFunc");
      dojo.java2s.myFunc();
    </script>
  </head>
  <body></body>
</html>








29.1.dojo basics
29.1.1.A html page structure for using dojo
29.1.2.Add DOM event to a tag
29.1.3.Customized function loader
29.1.4.Use dojo.require() to load modules
29.1.5.dojo method event