jqGrid 3.5.2를 사용 중이며 서버 측에서 XML 파일을로드하는 데 문제가 있습니다.jqGrid가 서버에서 xml 데이터를로드 할 수 없습니다.
나는 아직 비슷한 게시물 arround를 발견했지만 많이 도움이되지 않았다.
$(”#list4″).jqGrid({ url:'http://localhost/cgi-bin2/test.pl', datatype: 'xml',
mtype: 'GET', height: 400, colNames:['No','Date'],
colModel:[ {name:'call', index:'call', width:60, sorttype:'int'},
{name:'num',index:'num', width:90, sorttype:'int'}],
multiselect: true,
rowNum:10, rowList:[10,20,30], sortname: 'call',
viewrecords:true, caption:'dummy'});
내 서버 측 응답을 반환 : 여기
내 클라이언트 측 코드Content-Type: Content-type: text/xml;charset=utf-8
<?xml version='1.0' encoding = 'utf-8'?>
<rows> <page>1</page> <total>1</total> <records>2</records>
<row><cell>20</cell><cell>200</cell></row>
<row><cell>30</cell><cell>300</cell></row> </rows>
클라이언트 사이드 제대로 Ajax를 통해 전체 데이터의 일을받을 수 있지만 불행하게도 나던에 데이터를 추가 않습니다 표 표시. 코드에 문제가 있습니까?
oops! 그것을 정정했지만 아직도 모델을로드하지 않습니다. – ZeroCool