Inside one JS function I call another,.. I want to call it every 30 seconds
function showPopup() {
    $.get("/Feedback.aspx", function (data) {
        if (post_HasError(data))
            return;
        initPopup("popup-common", "feedback", data);
    });
    setInterval(AddFormToSession(3), 30000);
}
function AddFormToSession(form) {
    alert(1);
  var url1 = form == 3 ? "Feedback.aspx/AddFormToSession" : "Request.aspx/AddFormToSession";
    $.ajax
    ({
         type: "POST",
         async: true,
         url: url1,
         data: "{'funcParam':'" + $('#aspnetForm').serialize() + "'}",
         contentType: "application/json; charset=utf-8",
         dataType: "json",
         success: function(msg)
         {
             console.log(msg.d);
         }
     });
  }
is called only the first time
 
     
     
    