Obtenga resultados de DB y coloque en JavaScript CodeIgniter

$query = $this->db->query("YOUR QUERY");

foreach ($query->result_array() as $row)
{
        echo $row['title'];
        echo $row['name'];
        echo $row['body'];
}
Jumping Boy