Use CodeIgniter Base URL in JavaScript functions
When writing AJAX applications with CodeIgniter, you usually want to post to a controller class by using Javascript functions. For example, if you are using jQuery for posting a form or loading back a page using an AJAX style, then you need to call the Controller class from your jQuery code. This post will show you how to use your CodeIgniter base URL in JavaScript functions.

