Ajax Framework (CJAX) for Codeigniter 2.x+ |
[eluser]gwatt[/eluser]
Hi I managed to solve a frustrating problem I was having with CJAX and Code Igniter. I thought this might help someone. If I use the full location to ajax like this $ajax->click('#click_div',$ajax->call('http://uebusaito.com/test_ci_cjax3/ajax.php?click/update/')); then the link turns into a crossdomain link (and nothing happens) http://uebusaito.com/test_ci_cjax3/ajax....644449730/ For some reason even though it resolves to the same location I have to use relative links - like this: $ajax->click('#click_div',$ajax->call('../../ajax.php?click/update/')); I feel like relative links could be a problem later because it relies on the Code Igniter URL always having a controller and a function - which may not always be the case. So I would like to get absolute links working. If anyone has any advise please let me know. G |
Welcome Guest, Not a member yet? Register Sign In |