0
$scope.submitTheForm = function(htmlcode){  
        var idOfForm = "formOfCalCPDF";
        var dataPassed = $.param({'htmlcode':htmlcode,'mode':'getpdf'});
        alert("coming here");
        $(idOfForm).ajaxSubmit({
            url: 'ggs.erm.payrollJava.Taxsummary',
            type: "POST",
             data: dataPassed,
            error:function (){},
            success: function (data){}
        });
    };

When ever I call this function , although alert is executing,but not POST request, do you see any kind of problem with it?

Rishi
  • 1,646
  • 2
  • 15
  • 34

1 Answers1

1

You forgot id selector try this:-

$scope.submitTheForm = function(htmlcode){  
    var idOfForm = "formOfCalCPDF";
    var dataPassed = $.param({'htmlcode':htmlcode,'mode':'getpdf'});
    alert("coming here");
    $('#'+idOfForm).ajaxSubmit({
        url: 'ggs.erm.payrollJava.Taxsummary',
        type: "POST",
         data: dataPassed,
        error:function (){},
        success: function (data){}
    });
};
Umesh Sehta
  • 10,555
  • 5
  • 39
  • 68