CodeIgniter Forums
output->set_output to jquery any help.. - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: output->set_output to jquery any help.. (/thread-52613.html)



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().