A
Anonymous
Guest
Hi There,
I'm trying to navigate to controller using ajax/Jquery. Get data using ajax, and populate in jqgrid.
My code for Jquery, looks like:
Inspect element error:
Application is wrapped in a laravel framework. 4.2 version. I'm able to see the jqGrid, of course it's not populated with any entry.
Similar thing works on my small MVC app. Never saw error as above (concatenated with false, search....).
I do not get to the laravel routes.php page.
jquery versoin using: 1.9.1
Please help.
I'm trying to navigate to controller using ajax/Jquery. Get data using ajax, and populate in jqgrid.
My code for Jquery, looks like:
Code:
$(document).ready(function () {
$("#grid_illumina").jqGrid({
url:'illumina_xhr_get_data', //url
datatype: "json", //get json data
mtype: "GET", //type
jsonReader: {
repeatitems: false,
id: "",
root: function (obj) {
return obj;
},
records: function (obj) {
return obj.length;
},
page: function () {
return 1;
},
total: function () {
return 1;
}
},
colNames:['study','Sample Name','Forward Primer','Reverse Primer'], //column names
colModel :[
{name:"study",sortable: true},
{name: "sample_name",sortable: true},
{name: "forward_primer",sortable: true},
{name: "reverse_primer",sortable: true}
],
rowNum:10, //this sets the default row in the pager
caption:"jqGrid Illumina", //title of the grid
pager: '#pager_illumina', //pager
shrinkToFit : false,
rownumbers: true, //row numbers on left
multiselect: true, //check box
height: '400', //height: 'auto',
width: '1100',
gridview: true,
viewrecords:true, // this is for the View 1 - 8 of 8 \m/
sortorder:"asc", //asc
autoencode: true, //don't know
sortable:true, //sort
loadonce: false, //loadonce is must
rowList:[3,6,9], //drop down
page: 1,
rowNum: 3
});
});
GET http://localhost/learn_app/public/illumina_xhr_get_data?_search=false&nd=1449091925526&rows=3&page=1&sidx=&sord=asc 404 (Not Found) jquery.js:8540
Application is wrapped in a laravel framework. 4.2 version. I'm able to see the jqGrid, of course it's not populated with any entry.
Similar thing works on my small MVC app. Never saw error as above (concatenated with false, search....).
I do not get to the laravel routes.php page.
jquery versoin using: 1.9.1
Please help.