[eluser]Pascal Kriete[/eluser]
It's because you're not returning the view file. By default it's added to the CI output 'buffer'.
Code:
$return['view'] = $this->load->view('front/modules/resources/resource_view/additional/comments', '', TRUE);
echo json_encode($return);
exit;
I don't really see why you have to do this though. If the view is the only thing you're sending, just echo it.
Code:
// php
echo $this->load->view('front/modules/resources/resource_view/additional/comments', '', TRUE);
exit;
// example js callback
var success = function(o) {
// Define tab_3 outside this function and check for it before calling the ajax function - sort of like a cache, only request once (unless the data changes)
tab_3 = o.responseText;
my_container . innerHTML = tab_3;
}