Welcome Guest, Not a member yet? Register   Sign In
call an ajax request to one Controller... what the solution since out of web access
#6

Code:
<head>
<!-- setup base_url() and site_url() for JavaScript -->
<script>
   var baseUrl = "<?php echo base_url(); ?>";
   var siteUrl = "<?php echo site_url(); ?>";
</script>
</head>

jQuery CODE:

$.ajax({
   url: baseUrl + "controller/method",
   // other parameters
});
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply


Messages In This Thread
RE: call an ajax request to one Controller... what the solution since out of web access - by InsiteFX - 07-29-2018, 04:05 AM



Theme © iAndrew 2016 - Forum software by © MyBB