Are using using compression? If you are try to turn it off from CodeIgniter config.php
EDIT:
Option 1: you could put check from your method if you are receiving an ajax call. try creating this helper:
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
function is_ajax()
{
return isset($_SERVER['HTTP_X_REQUESTED_WITH']) && $_SERVER['HTTP_X_REQUESTED_WITH'] == 'XMLHttpRequest';
}
?>
Then try doing this in your method:
if (is_ajax())
{
// do your thing
}
else
{
$this->load->view('your_view');
}
This hopefully will solve this...
Option 2.
You could just echo and html string e.g. 'your data' and not load view
Thorpe Obazee
2009-12-07 07:41:41