[eluser]Haqqi[/eluser]
[quote author="chefnelone" date="1264614088"][quote author="Dyllon" date="1264549311"]I like to define my base URI, module/controller, and method in my view header so I can use them in any javascripts.
Code:
var BASE_URI = "<?php echo base_url(); ?>";
var CI_CONTROLLER = "<?php echo $controller; ?>";
var CI_METHOD = "<?php echo $method; ?>";
Then use the variables in your javascript
Code:
$.post(BASE_URI + CI_CONTROLLER + '/' + CI_METHOD, order, function(theResponse)...
[/quote]
I had already found a solution, but I'll try your idea as well
thanks.[/quote]
Can you provide your solution too??