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






Customized function loader

 

<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>

   
  








Dojo-toolkit.zip( 3,849 k)

Related examples in the same category

1.A html page structure for using dojo
2.Add DOM event to a tag
3.Use dojo.require() to load modules
4.dojo method event