dojo.moduleUrl

Available:since v0.9

dojo.moduleUrl is used to return a dojo._Url object relative to a module.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
<script type="text/javascript">
  // points to $dojoroot/dijit/form/tests/TestFile.html
  var url = dojo.moduleUrl("dijit.form", "tests/TestFile.html");
  dojo.xhrGet({
      url: url,
      load: function(html){
           dojo.byId("foo").innerHTML = html;
      }
  });
</script>

Table of Contents

Error in the documentation? Can’t find what you are looking for? Let us know!