Welcome Guest, Not a member yet? Register   Sign In
Jquery ajax request works in some pages and in others it doesnt
#17

[eluser]iceuser[/eluser]
[quote author="Matalina" date="1340919131"]whats your controller look like?[/quote]

other than i have deleted everything except the above code just to be sure it works... but it still wont work on firefox and chrome on mac machine...

it looks like

Code:
<?php
class comment extends CI_Controller
{

private $error = false;
private $html = '';


public function __construct(){
     parent::__construct();
}

function getComments(){
   $data = array(
    'html' => $this->html,
    'error'    => $this->error
   );
  
   header('Content-type: application/json');
  
   echo json_encode($data);
}

}


Messages In This Thread
Jquery ajax request works in some pages and in others it doesnt - by El Forum - 06-28-2012, 02:35 PM



Theme © iAndrew 2016 - Forum software by © MyBB