title: jquery ajax post call, ajaxify history and back button
body: <p>I have ajax calls made in jquery function which i call with onClick options placed on divs.
  example:</p>
  
  <pre><code>&lt;div class='basic' onClick='example( &lt;?php echo numberIwant ?&gt; )'&gt; example &lt;/div&gt;
  </code></pre>
  
  <p>and the functions than looks like this:</p>
  
  <pre><code>function example(ID){
      $.ajax({
          type: "POST",
          url: "example.php",
          data: "ID="+ID, success: function(msg){$("#main").html(msg);}
      });
  }
  </code></pre>
  
  <p>Now I want to make browser back button to work, to open the previous page(ajax content). 
  I googled and tried multiple scrips like ajaxify and history.js and so on but I just cannot get it working.</p>
  
  <p>I don't know if I either don't know how to use ajaxify properly or if it just doesent work with this kind of method.. </p>
  
  <p>Can anyone help me? </p>