Note that there are some explanatory texts on larger screens.

plurals
  1. POjqGrid won't load JSON data in Chrome with no errors
    primarykey
    data
    text
    <p>I have quite a few working examples of jqGrid, and yesterday I added a new one. It worked fine on my localhost, but when I moved it to my online staging server I'd get the Loading screen, and then nothing. No errors.</p> <p>Some notes:<br> 1) Using JSON, downloaded all at once<br> 2) Works fine in localhost in the same browser.<br> 3) HTML source looks identical<br> 4) JS source are identical<br> 5) JSON data is identical<br> 6) PHP 5.1 on staging server, PHP 5.3 on local<br> <strong>7) Works in Firefox 3 (issue appears in Chrome 11 on Linux and Windows)</strong><br> 8) Never ran into this before in my other jqGrid setups.</p> <p>Anybody run into anything like this before? This has really gotten me puzzled, and I don't want to start debugging jqGrid itself.</p> <p>Edit: Here is my jqGrid call:</p> <pre><code>jQuery(function(){ jQuery('#list1').jqGrid({ url:'/index.php?option=com_coinnet&amp;view=snap&amp;layout=list&amp;Itemid=123&amp;format=json&amp;ajax=1', datatype: 'json', mtype: 'GET', colNames: ["ID","Date","Dealer","Amount","Check Number","Tracking Number","Deal Done","Note?","Date Sort"], colModel: [{"name":"id","width":0,"hidden":true,"key":true},{"name":"date_postedstr","width":100,"align":"right","index":"date_posted"},{"name":"stationlink","width":100,"align":"right"},{"name":"amount","width":120,"align":"right","sorttype":"float","formatter":"number","formatoptions":{"decimalSeparator":".","thousandsSeparator":",","decimalPlaces":2}},{"name":"check_number","width":100,"align":"right"},{"name":"tracking_number","width":100,"align":"right"},{"name":"status","width":50,"sortable":false,"align":"right","formatter":"checkbox","formatoptions":{"disabled":"false"}},{"name":"link","width":60,"align":"right","formatter":"showlink","formatoptions":{"idName":"dealID","baseLinkUrl":"","addParam":"&amp;option=com_coinnet&amp;view=snap&amp;layout=deal&amp;Itemid=124"}},{"name":"date_posted","hidden":true,"width":0}], pager: '#pager1', loadonce:true, rowNum:10, rowList:[5,10,20,25,30,50,100,-1], sortname: 'date_posted', sortorder: 'DESC', viewrecords: true, caption: 'SNAP Deals', multiselect:false,jsonReader : { root:"data", page: "currpage", total: "totalpages", records: "totalrecords", repeatitems: false, id: "0" }, loadComplete: function() { jQuery("option[value=-1]").text('All'); }, height: 'auto', }); }); </code></pre> <p>And here is my data:</p> <pre><code>{"data":[{"id":"1654088","my_name":"CT00","my_id":"11920","other_name":"NV23","date_posted":"2010-12-07 14:23:34","check_number":null,"tracking_number":null,"notes":null,"shipped":"F","paid":"F","status":false,"amount":null,"check_number_date":null,"tracking_number_date":null,"newversion":"F","bulletin_id":null,"original_mailbox_id":null,"parcel_carrier_id":null,"date_postedstr":"12\/07\/2010","link":"Add","stationlink":"&lt;a target='_blank'\n href='?option=com_coinnet&amp;view=dealerinfo&amp;Itemid=122&amp;station=NV23'&gt;NV23&lt;\/a&gt;"},{"id":"1631050","my_name":"CT00","my_id":"11920","other_name":"FO81","date_posted":"2010-07-13 09:49:10","check_number":null,"tracking_number":null,"notes":null,"shipped":"F","paid":"F","status":false,"amount":null,"check_number_date":null,"tracking_number_date":null,"newversion":"F","bulletin_id":null,"original_mailbox_id":null,"parcel_carrier_id":null,"date_postedstr":"7\/13\/2010","link":"Add","stationlink":"&lt;a target='_blank'\n href='?option=com_coinnet&amp;view=dealerinfo&amp;Itemid=122&amp;station=FO81'&gt;FO81&lt;\/a&gt;"}],"totalrecords":75,"totalpages=&gt;":8,"currpage":"1","userdata":null} </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload