![]() |
Using AJAX to load controller? - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Using AJAX to load controller? (/showthread.php?tid=19205) |
Using AJAX to load controller? - El Forum - 05-31-2009 [eluser]future2012[/eluser] Hi again ![]() Since a couple of days I were trying to process controller file through many ajax frameworks functions so it could load page in background and display response in a little pop-up - with no results. I'd like to use it for voting system. Schematic: ENTRIES.php(controller+view) -> "It's good" BUTTON click -> ajax action(run "VOTES.php?action=good" in background) -> show response in popup/div (anything without refresh...) Thanks in advance ![]() Using AJAX to load controller? - El Forum - 05-31-2009 [eluser]ggoforth[/eluser] [quote author="future2012" date="1243801750"]Hi again ![]() Since a couple of days I were trying to process controller file through many ajax frameworks functions so it could load page in background and display response in a little pop-up - with no results. I'd like to use it for voting system. Schematic: ENTRIES.php(controller+view) -> "It's good" BUTTON click -> ajax action(run "VOTES.php?action=good" in background) -> show response in popup/div (anything without refresh...) Thanks in advance ![]() I'm not quite sure if your problem lies with CodeIgniter or your ajax problems. Is votes.php part of codeigniter? If so, the get by default is unset, so if your ajax is relying on that, that may be the problem. Have you enabled the query string as part of your codeigniter config? I've never done it, but that is one thing that stands out as a potential problem. Greg Using AJAX to load controller? - El Forum - 06-02-2009 [eluser]me_not_you[/eluser] hi, I had the same probleme, I was using scriptaculous + prototype like so => Code: [removed][removed] With Firefox it works great but with IE if I call a /contoller/method => nothing So now i'm using jquery like so Code: [removed][removed] now it works great with Firefox and IE...the only thing is you cant call the javascript function again... Hop this helps... |