[eluser]GrootBaas[/eluser]
Hi there,
Any help would be very much appreciated ...
In my controller I load a form like this ...
Code:
function index() {
$rules = $this->_load_logs_rules ();
$this->validation->set_rules ( $rules );
$fields = $this->_load_logs_fields ();
$this->validation->set_fields ( $fields );
$this->layout->buildPage($this->config->item('log_sum_view'), $data);
}
From within this form, I use AJAX like this ...
Code:
var contract_no = $('.trSelected td:nth-child(2) div').text();
$.ajax({
url: "<?=base_url()?>logs/update_logs",
global: false,
type: "POST",
async: true,
dataType: "html",
data: "con_num="+ contract_no
});
In the Update logs function within the controller, I call another form like this ...
Code:
function update_logs() {
$options = null;
$contract_no = $this->input->post ( 'con_num' );
log_message('debug','LOGS - Selected contract '.$contract_no);
$this->load->view('default/content/log/log_detail');
return TRUE;
The new from is not loaded (nothing happens), but in my message logs, it says that ...
Quote:DEBUG - 2008-10-16 18:38:40 --> File loaded: C:/WebAus/ifleetiii/system/application/views/default/content/log/log_detail.php
Could somebody please help me?