⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

can not find js error on add, edit, update success message



putoyair
  • profile picture
  • Member

Posted 14 March 2013 - 19:13 PM

I have a controller

Person

 

 

 

class Person extends CI_Controller
{


    function __construct()
    {
        parent::__construct();
        $this->load->database();
        $this->load->helper('url');
        $this->load->library('grocery_CRUD');
    }


    public function Person_Info()
    {
        $crud = new grocery_CRUD(); 
        $crud->set_table('tbl_person')
             ->set_subject('Person')
             ->columns('id_person','name','sexo','age','job');
        $crud->set_primary_key('id_person','tbl_person');    
       
        //TRIED UNSETTING JQUERY BUT NO LUCK

        //$crud->unset_jquery(); 
        //$crud->unset_jquery_ui();
        

        $output = $crud->render(); 
        $this->deploy($output);
        
    }
    
    function deploy($output = null) 
    {
        //tried not loading header with js but no luck either
        //$this->load->view('header');
        $this->load->view('view_person', $output);
        $this->load->view('footer');


    } 
}   
 

 

    
 
 
 
 
now view_person is:
 
 

<div id="content-table-inner">
        
            <div style='height:20px;'></div>  
            <div>
            
        <?php echo $output; ?>
 
            </div>
            
            <div class="clear"></div>
        
        </div

 

 

 

 
 
and header is:
 

 

<head>
        <?php
        foreach($css_files as $file): ?>
            <link type="text/css" rel="stylesheet" href="<?php echo $file; ?>" />
        <?php endforeach; ?>
        <?php foreach($js_files as $file): ?>
            <script src="<?php echo $file; ?>"></script>
        <?php endforeach; ?>
 

 

        So I get:
 
jPtPc.png
I have seen this question andother where they say maybe jquery is the issue, I removed everithing and let only crudgrocery required files but nothing....
 
I am getting desperate as I have tried to solve this issue by 3 hours....

 


victor
  • profile picture
  • Member

Posted 18 March 2013 - 08:17 AM

Try to update GC. I had the same problem. I downloaded the fresh version of GC and replaced all files. Try to delete cache too.

It's Interesting that only one browser had the problem, the others worked fine at the same time.