Welcome Guest, Not a member yet? Register   Sign In
Ajax and Controller
#2

(This post was last modified: 08-13-2015, 06:47 AM by Ridd.)

url should be full and don't use print_r , just echo, for example :
Code:
               $.ajax({
                   type: "POST",
                   dataType: "text",
                   url: "<?php echo site_url('upload/summernote') ?>",

                   success: function(msg) {
                     console.log(msg)
                    }

               });
   

Code:
public function summernote(){
   echo 'hello';
}
Reply


Messages In This Thread
Ajax and Controller - by Angelo - 08-11-2015, 09:56 AM
RE: Ajax and Controller - by Ridd - 08-13-2015, 06:46 AM



Theme © iAndrew 2016 - Forum software by © MyBB