Codeigniter and ajax query involving one more view |
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
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
Of coz it was the typo and "basic blah" is back on track .
Thx for crawling through my mistakes ![]() |
Welcome Guest, Not a member yet? Register Sign In |