CodeIgniter Forums
output->set_output to jquery any help.. - 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: output->set_output to jquery any help.. (/showthread.php?tid=52613)



output->set_output to jquery any help.. - El Forum - 06-18-2012

[eluser]Pet[/eluser]
how can i capture the output sent using jquery .get() . I want to show a dynamic page.
This my way of sending it to ajax
$data=array(
'id'=>100,
'name'=>test_name
);
$page=$this->load->view('my_view',$data,TRUE);
$this->output->set_output($page);

anyone encountered this approach? I just need a function to load it in view using jquery .load().