title: URL ajax send but not change the url
body: <p>Hi to all people :D i have a problme with method ajax for jquery, I dont know what happend xD</p>
  
  <p>I am use the ajax for a confirm, it is works fine until i send the url</p>
  
  <pre><code>if (confirmation) {
              $.ajax({
                  type: "GET",
                  url: "http://localhost/Bar/index.php",
                  dataType: "json",
                  data: {current: current_item, disp: disp},
                  success:function() {
                   alert( "Data Saved");
                  }
              });
          }else{
              return false;
          }
  </code></pre>
  
  <ul>
  <li><p>I already try </p>
  
  <ul>
  <li>Cache to false.</li>
  <li>With dataType jason and without it.</li>
  <li>Urls relative or absolute.</li>
  <li>Method $.get and $.post.</li>
  <li>Type:post</li>
  <li>I delete the other code and only leave alone the ajax.</li>
  </ul></li>
  </ul>
  
  <p>I use the inspector for google chrome and the url is sended but not change or get the vars in the inspector i got this:</p>
  
  <pre><code>index.php   
  styles.css  
  jquery-1.9.1.js 
  jquery-ui.js    
  index.php?current=table_6&amp;disp=available
  </code></pre>
  
  <p>but i cant obtain with get and not matter if i use method post or get my url always is index.php without variables i only can see with the inspector.</p>
  
  <p>I have this for obtain the var:</p>
  
  <pre><code>if($_SERVER['REQUEST_METHOD']=='GET' &amp;&amp; isset($_GET['current'])){*/
      $pos = $_GET['current'];
      echo $pos;
  }
  </code></pre>
  
  <p>but only give me - without the comprobation for see the error:</p>
  
  <pre><code> Notice: Undefined index: current in C:\wamp\www\Bar\index.php on line 4
   Call Stack
   #  Time    Memory  Function    Location
   1  0.0009  255448  {main}( )   ..\index.php:0
  </code></pre>
  
  <p>Thanks for any suggestion, regards :D</p>