i'm running jquery 1.3.2 and downloaded the jqGrid from the website with the package creator (full, and what i wanted specifically) but i get this error in both safari 4.0 and firefox 3.5.
safari full worded error:
TypeError: Result of expression '$.jgrid' [undefined] is not an object. jquery.jqgrid.js:9
here is my code:
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
$(function() {<br /> $('#po_order').jqGrid({<br /> url: '/ajax/jq_purchase_orders',<br /> datatype: 'json',<br /> colNames: ['Order Date', 'Status', 'Total'],<br /> colModel: [<br /> {name:'order_date', index:'order_date', width: 100, sortable:true},<br /> {name:'order_status', index:'order_status', width: 150, sortable:true},<br /> {name:'po_total', index:'po_total', width: 100, sortable:true}<br /> ],<br /> rowNum: 10,<br /> rowList: [10, 20, 40, 50],<br /> pager: $('#pager'),<br /> sortname: 'order_date',<br /> sortorder: 'desc',<br /> viewrecords: true,<br /> caption: 'Purchase Orders'<br /> });.navGrid('#pager', {edit:false, add:false, del:false});<br /> }); |
pretty much right from the examples on the website.
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top