Welcome Guest, Not a member yet? Register   Sign In
how to get url from ajax
#3

[eluser]pickupman[/eluser]
Just use site_url() function. In jQuery, I've used:
Code:
$.ajax({
  url: "<?php echo site_url('controller/function');?>",
  //the rest of the options...

});


Messages In This Thread
how to get url from ajax - by El Forum - 04-12-2010, 05:51 AM
how to get url from ajax - by El Forum - 04-12-2010, 06:18 PM
how to get url from ajax - by El Forum - 04-12-2010, 09:06 PM
how to get url from ajax - by El Forum - 04-12-2010, 09:09 PM
how to get url from ajax - by El Forum - 04-12-2010, 09:26 PM
how to get url from ajax - by El Forum - 04-12-2010, 09:28 PM
how to get url from ajax - by El Forum - 04-12-2010, 11:51 PM
how to get url from ajax - by El Forum - 04-13-2010, 12:20 AM



Theme © iAndrew 2016 - Forum software by © MyBB