I am creating a custom extension for DNN using Christoc's DotNetNuke Module and Theme Development Template
I want to call server side methods using ajax inside my javascript file
example code
$.ajax({
url:'myModule/listOfPosts'
success:function() {
// do something with list of posts
}
});
How can i do this? I am open to all suggestions. Thank You