Here is my code. All I get is the pager at the bottom and the column names. No styles and no data. But it doesn't say “no data” and I get no errors.
<script type=“text/javascript”>
$(document).ready(function(){
$(”#job-list”).jqGrid({
url:'http://api.indeed.com/ads/apisearch?publisher=6914058027253227&q=coldfusion&l=&sort=&radius=&st=&jt=&start=0&limit=200&fromage=&filter=&latlong=1&co=us&chnl=main%20job%20page&userip=192%2E168%2E1%2E100&useragent=Mozilla%2F5%2E0%20%28Windows%3B%20U%3B%20Windows%20NT%206%2E0%3B%20en%2DUS%3B%20rv%3A1%2E9%2E1%2E2%29%20Gecko%2F20090729%20Firefox%2F3%2E5%2E2%20GTB5%20%28%2ENET%20CLR%203%2E5%2E30729%29',
datatype: 'xml',
mtype: 'GET',
colNames:['Job Title','Company', 'City','State','Country','Date'],
colModel :[
{name:'jobtitle', index:'jobtitle', width:150},
{name:'company', index:'company', width:125},
{name:'city', index:'city', width:80},
{name:'state', index:'state', width:50},
{name:'country', index:'country', width:50},
{name:'date', index:'date', width:100}
],
xmlReader: {
root:”results”,
row:”result”,
records:”response>totalresults”,
repeatitems:false,
id : “jobkey”
},
pager: '#job-pager',
rowNum:10,
rowList:[10,20,30],
sortname: 'date',
sortorder: 'desc',
viewrecords: true
});
});
|
1 |
</<span class="end-tag">script</span>> |
|
1 |
<br /><br /> |
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top