title: Toastr with AJAX
body: <p>I am trying to get a toastr message to display from JSON retrieved via AJAX. This must be able to change the type of alert and its contents. I am not too clever with JSON, after reading up on it for a while i still have no idea where to start. Any pointers?</p>
  
  <p>Ajax:</p>
  
  <pre><code> function ping(data1)
      {
          $.ajax({
             type: "POST",
             url: "bridge/ping.php",
             data: "var1="+data1,
             success: 
          }
       });
  </code></pre>
  
  <p>Toastr:</p>
  
  <pre><code>          toastr.success("Message here","Title here)
  </code></pre>