title: Calling server side methods using ajax inside a custom extension
body: <p>I am creating a custom extension for DNN using <a href="https://christoctemplate.codeplex.com/" rel="nofollow">Christoc's DotNetNuke Module and Theme Development Template</a></p>
  
  <p>I want to call server side methods using ajax inside my javascript file</p>
  
  <p><em>example code</em></p>
  
  <pre><code>$.ajax({
    url:'myModule/listOfPosts'
    success:function() {
      // do something with list of posts    
    }
  });
  </code></pre>
  
  <p>How can i do this? I am open to all suggestions. Thank You</p>