title: how to use ajax in magento backend
body: <p>why ajax call from magento backend(from .phtml) redirects to magento dashboard despite of sending form key properly with form? please help.</p>
  
  <p>in ajax call :</p>
  
  <pre><code>var dataRecord = j('#newForm').serialize(); 
      var url = "&lt;?php echo $this-&gt;getUrl('*/*/addNewColumn') ?&gt;";
  
      j.ajax({
      type: "POST",
      url: url,
      data: {data1: dataRecord}
      })
      .done(function( msg ) {
          alert(msg);
      });
  </code></pre>