[eluser]tnathos[/eluser]
hi, i have a dude or problem.. xd..
in my app i send one parameter via ajax using js, whit this parameter i make a select and return the data, whit this data i pass to other view.. the view for show results.
But i have a problem, when i get the data in the controller i send the array to the results view whit $this->load.... but not redirect.. i suppose what the problem its the call ajax, but how i can resolve this?
ajax.
Code:
function buscar_categoria(categoria)
{
$.ajax({
type: "POST",
url: "<?=base_url()?>busqueda/get_categorias/",
cache: false,
data: "categoria="+categoria,
success: function(msg){
}
});
}
controller.
Code:
function get_categorias()
{
$this->load->model('modelbusqueda','get_data');
$data['resultado']= $this->get_data->get_categorias();
$this->load->view('/home/busqueda', $data);
}