Skip to content

add base_url in javascript #46

Description

@GoogleCodeExporter
would be interesting to add the script

<script type="text/javascript">
       CI_ROOT = "<?=base_url() ?>";
</script>

thus can reach the base_url, as in the case of ajax login

$.post(CI_ROOT+"/member/ajax/login",{ username: username, password: 
password,rand:Math.random() } ,function(xml)

sorry for my english!

Greetings from Argentina

Original issue reported on code.google.com by lvitt...@gmail.com on 27 Aug 2010 at 10:48

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions