title: Jquery relative and absolute path
body: <p>I need determinate this path in jquery , actually i have one file called functions.js and inside of this one function for load url with jquery</p>
  
  <p>The problem it´s the js load in the index of website and the file really in subfolder </p>
  
  <pre><code>&lt;script src="http://www.domain.com/wp-content/includes/themes/mytheme/js/functions.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>The js called in the index of website it´s into wp-content/includes/themes/mytheme/js</p>
  
  <p>And the load jquery call to : wp-content/includes/themes/mytheme/index_loader.php</p>
  
  <p>I can put the absolute path to index_loader.php in jquery , but my question it´s if it´s possible no use this and calculate the path into js file </p>
  
  <p><strong>Actually :</strong> </p>
  
  <pre><code>$("#test").load("http://www.domain.com/wp-content/includes/mytheme/index_loader.php");
  </code></pre>
  
  <p><strong>It´s possible this or calculate inside jquery file ? - I try and no works .....</strong></p>
  
  <pre><code>$("#test").load("../index_loader.php");
  </code></pre>
  
  <p>This it´s my problem really , thank´s regards</p>