title: Trigger PHP methods without a page reload
body: <p>At the moment my methods work using GET requests:</p>
  
  <pre><code>http://localhost/intranet2/?break_start
  http://localhost/intranet2/?break_end
  </code></pre>
  
  <p>I want to acheive similar results only using Ajax and jQuery. I've tried:</p>
  
  <pre><code>&lt;script&gt;
  $(document).ready(function() {
   $(function() {
  $( "#dialog" ).dialog({
      autoOpen: false,
      show: {
          effect: "blind",
          duration: 1000
          },
      hide: {
          effect: "explode",
          duration: 1000
          }
  });
  $( "#opener" ).click(function() {
      $( "#dialog" ).dialog( "open" );
  });
  });
  
  $.ajax({
   url: "http://localhost/intranet2/?page=break_start",
   context: document.body
   }).done(function(data) {
       alert(data);
       $( "#opener" ).click(function() {
              $( "#dialog" ).dialog( "open" );
          });
  
   });
  
  
  
  });
  &lt;/script&gt;
  </code></pre>
  
  <p>My trigger elements is:</p>
  
  <pre><code>&lt;button id="opener"&gt;Start Break&lt;/button&gt;
  </code></pre>
  
  <p>My modal window opens successfully but my PHP method to update the database via the URL </p>
  
  <pre><code>http://localhost/intranet2/?break_start
  </code></pre>
  
  <p>fails to trigger? Help.</p>