Contents
dojo.moduleUrl is used to return a dojo._Url object relative to a module.
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>