3 Replies Latest reply on May 4, 2015 12:27 PM by BKBK

    Coldfusion Component page is not being processed. - or at least, it is not working

    Roberto Cabrera_402

      Hello,

       

      I am using jQuery AJAX to call a function from a .cfc page. As of now, I am just using console.log(result) to see what response I get. And what I got is the content of the coldfusion component page.

       

      screen_capture.png

       

      And if I type the url on the browser I get the same...

      2015-05-04_9-15-29.png

      This is my code to make the call using AJAX

       

      index.cfm

      [code]

      jQuery.ajax({

          url: 'sch_acc_maint_func.cfc',

          type: 'POST',

          data: {method: 'student_info', accnumber: accnumber, dsrc: dsrc}, //variables are defined , but I have not posted the code...

          success: function(student){

                console.log(student);

            }

      });

       

      [/code]

       

       

      The contents for sch_acc_maint_func.cfc, can be seen on the picture.

       

       

      I am running Coldfusion 9 on a unix server.

       

       

      Has anybody experienced this situation? Any advise will be really appreciated.