![]() |
Codeigniter and ajax query involving one more view - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: Best Practices (https://forum.codeigniter.com/forumdisplay.php?fid=12) +--- Thread: Codeigniter and ajax query involving one more view (/showthread.php?tid=63968) |
Codeigniter and ajax query involving one more view - ronlin - 12-28-2015 I am trying to call an AJAX output involving classic MVC scheme. My jquery method is communicating with controller and I can catch the variables sent by the jquery. What ever is being printed in the contoller is correctly showing back in jquery alert box ... However I can not get to my jquery method anything from the view called by the controller which is supposed to generate the ajax output. I know that I can simply printout all in the controller I just don't feel comfortable to generate an HTML view in controller. I ma using a codeigniter 2. This is the calling jquery method in my view: Code: $.ajax({ Code: public function get_promos(){ Code: <?php RE: Codeigniter and ajax query involving one more view - sintakonte - 12-29-2015 just out of curiosity you wrote: $this->view->load('list_promo_estab_ajax', $data); shouldn't it be $this->load->view('list_promo_estab_ajax', $data); or was it a typo? ![]() check that @first, if it doesn't change - i might have another idea RE: Codeigniter and ajax query involving one more view - ronlin - 12-29-2015 Of coz it was the typo and "basic blah" is back on track . Thx for crawling through my mistakes ![]() |