Welcome Guest, Not a member yet? Register   Sign In
Load a view
#1

[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?


Messages In This Thread
Load a view - by El Forum - 10-16-2008, 10:42 PM
Load a view - by El Forum - 10-17-2008, 12:51 AM
Load a view - by El Forum - 10-19-2008, 04:14 PM
Load a view - by El Forum - 10-20-2008, 08:49 PM
Load a view - by El Forum - 10-20-2008, 09:16 PM
Load a view - by El Forum - 10-20-2008, 09:32 PM
Load a view - by El Forum - 10-20-2008, 09:54 PM
Load a view - by El Forum - 10-21-2008, 02:01 AM



Theme © iAndrew 2016 - Forum software by © MyBB