CodeIgniter Forums
$.cookie is not a function - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21)
+--- Thread: $.cookie is not a function (/showthread.php?tid=25615)



$.cookie is not a function - El Forum - 12-17-2009

[eluser]maria clara[/eluser]
help..unable to figure the problem..this error came out when i change
$('.listFlex').flexigrid to $('.listFlex').jqgrid

$.cookie is not a function
if ($.cookie('closeNav'))\r\nar_salesorder (line 43)

$.cookie is not a function
var np = $.cookie(mod+'page');\r\njs (line 177)

$.cookie is not a function
var cNavs = $.cookie('Navs');\r\n

thanks,
maria :'C


$.cookie is not a function - El Forum - 12-18-2009

[eluser]Peter Pan[/eluser]
JQuery? Have you load the cookie Plugin?


$.cookie is not a function - El Forum - 12-18-2009

[eluser]theprodigy[/eluser]
This looks like a jQuery thing (please correct me if I'm wrong).

Are you loading the jQuery framework before calling this code?


$.cookie is not a function - El Forum - 12-18-2009

[eluser]maria clara[/eluser]
hi,

im loading a JQuery plugin. and i encounter that error..but now it seems that i just figure the solution for this..

i rearrange the external scripts in the header and it works fine now..but my error now is about the model and controller of my module..the data isn't showing in my page just the header.


thanks,
maria


$.cookie is not a function - El Forum - 12-18-2009

[eluser]theprodigy[/eluser]
can you post the actual error message, and the code of the model and controller it is referring to, please.


$.cookie is not a function - El Forum - 12-18-2009

[eluser]maria clara[/eluser]
@ theprodigy,

here is the error message:

Firebug's log limit has been reached. %S entries not shown. Preferences
GET http://localhost/comunion/ar_salesorder/listview?_...261122290317&rows=20&page=1&sidx=so_date&sord=desc
GET http://localhost/comunion/ar_salesorder/listview?_search=false&nd=1261122290317&rows=20&page=1&sidx=so_date&sord=desc


GET http://localhost/comunion/ar_salesorder/detaillist...1122290394&rows=20&page=1&sidx=so_item_id&sord=asc
GET http://localhost/comunion/ar_salesorder/detaillistview?_search=false&nd=1261122290394&rows=20&page=1&sidx=so_item_id&sord=asc

E is null
[Break on this error] (function(){var l=this,g,y=l.jQuery,p=l....each(function(){o.dequeue(this,E)})}});

str is null
[Break on this error] if (str.match("date")=="date")\r\n


$.cookie is not a function - El Forum - 12-18-2009

[eluser]maria clara[/eluser]
in the controller:

Code:
function listview()
    {
        $data = $this->AR_salesorder_db->getList();    
        $this->load->view('template/table',$data)
        ;
    }
    
    function detaillistview()
    {
        $data = $this->AR_salesorder_db->getDetailList();    
        $this->load->view('template/table',$data);
    }

in the MOdel:
Code:
function getDetails($data)
    
    {
        $data['ar_so.is_deleted'] = '0';
        $this->db->join('maint_customers b','ar_so.client_id=b.cust_id','left');
        $this->db->join('maint_customers c','ar_so.del_client_id=c.cust_id','left');
        $this->db->join('maint_employee d','ar_so.salesman_id=d.emp_id','left');
        $this->db->join('maint_marketsegment e','ar_so.ms_id=e.ms_id','left');
        $this->db->join('sec_dataset f','ar_so.type_id=f.data_id','left');
        $this->db->join('sec_dataset g','ar_so.currency_id=g.data_id','left');
        $this->db->join('sec_dataset h','ar_so.pay_type_id=h.data_id','left');
        $this->db->join('sec_dataset i','ar_so.term_id=i.data_id','left');
        $this->db->join('sec_dataset j','ar_so.int_term_id=j.data_id','left');
        $this->db->join('sec_dataset k','ar_so.status=k.data_value AND k.data_code = "TRAN_STATUS"','left');
        $this->db->join('sec_users l','ar_so.prepared_by_id=l.user_id','left');
        $this->db->select(    "ar_so.*,
                            b.customer_code, b.customer_name,
                            c.customer_code as delcustomer_code, c.customer_name as delcustomer_name, c.telephone, c.mobile,    
                            c.fax, c.email,
                            d.emp_code,d.emp_name,
                            e.ms_code,e.ms_desc,
                            f.data_display as order_type,
                            g.data_display as currency_type,
                            h.data_display as pay_type,
                            i.data_display as term_type,
                            j.data_display as intterm_type,
                            k.data_display as status_name,
                            concat_ws(' ', l.first_name,l.last_name) as first_name", false
                        );
                            
        $this->db->where($data);        
        return $this->db->get('ar_so')->row_array();



$.cookie is not a function - El Forum - 12-18-2009

[eluser]saidai jagan[/eluser]
Where are u calling u r model function getDetails($data)?