title: Trying to use dojo 1.6 auto loader
body: <p>I'm trying to work out how to load a module using example <a href="http://dojotoolkit.org/reference-guide/dojo/registerModulePath.html" rel="nofollow">http://dojotoolkit.org/reference-guide/dojo/registerModulePath.html</a></p>
  
  <p>I have the following structure (highlighting what I believe to be the important files):</p>
  
  <pre><code>/index.html (code below)
  /dojo-1.6.1/dojo/dojo.js
  /dojo-1.6.1/j_test/test1234.js &lt;- for method 1 loading
  /xj_test/test1234.js &lt;- for method 2 loading
  </code></pre>
  
  <p>I have the following code on the page:</p>
  
  <pre><code>&lt;script type="text/javascript" src="/dojo-1.6.1/dojo/dojo.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript"&gt;
      dojo.ready(function(){
          //alert("Dojo version " + dojo.version");
  
          //method 1
          dojo.require("j_test.test1234");
  
          //method2
          dojo.registerModulePath("xj_test", "../../xj_test");
          dojo.require("xj_test.test1234");
      });
  &lt;/script&gt;  
  </code></pre>
  
  <p>For method 1 I get the error message:</p>
  
  <blockquote>
    <p>could not load 'j_test.test1234'; last tried '../j_test/test1234.js'</p>
  </blockquote>
  
  <p>For method 2, I get the error:</p>
  
  <blockquote>
    <p>Could not load 'xj_test.test1234'; last tried '../../xj_test/test1234.js'</p>
  </blockquote>
  
  <p>I was expecting dojo to work out the correct path auto-magically but I guess I must be missing something? I am using dojo1.6.1</p>