Codeigniter Fw kullanarak ajax post ile mail göndermeye çalışıyorum ama bir türlü sonuc alamadım. Console'dan bakıyorum hatada göremiyorum.


Controller


View
$('#confirmm').click(function () {
        var _trans = $('#trans').val();
        var _delivery = $('#delivery').val();
        var _note = $('#note').val();
        var _productcode = $('#productcode').val();
        var _quantity = $('#quantityx').val();
       $.ajax({
            type: 'post',
            url: '/cajax/SuccessRequest',
            data: {
                trans: _trans,
                delivery: _delivery,
                note: _note,
                productcode: _productcode
            },
           
            cache: false,
            success: function (result) {
              
                if (result == "success") { 
                  alert("Thanks");
                }
                if(result=="error"){
                  alert("error");
                }
                if(result=="fill"){
                  alert("Please fill in all of the field");
                }
            }
    
       });
    });