title: Wordpress ajax url ... not send
body: <p>I have a javascript file that is trying to send POST data to a php file that is in a directory above it in my filesystem:</p>
  
  <pre><code>plugin 
  |js
   /script.js
  |saveData.php
  </code></pre>
  
  <p>script.js:</p>
  
  <pre><code>$.ajax({
   type: "POST",
   url: '/../saveData.php',
      data: {
          obj 
      }, //send data if needed
      success:function(){
          alert("OK sent data!");
      }
  </code></pre>
  
  <p>This however, doesn't seem to work. How should I be referencing this file? I am also a little bit confused as to where this php file should reside to begin - I need to be able to make calls to the $wpdb class. Any help/advice appreciated!</p>