(1) 請問在wijmo grid的demo(h t t p://wijmo.com/demo/explore/?widget=Grid&sample=Data sources)中出現的wijdatasource, wijhttpproxy and wijarrayreader是如何使用的? 那裡有相關的說明文件?
(2) 以下編程會從jQuery取得表格數據, 如何用wijmo grid把數據顯示出來?
<script src="h t t p://code.jquery.com/jquery-1.8.3.min.js" type="text/javascript"></script>
<script src="h t t p://cdnjs.cloudflare.com/ajax/libs/jquery.SPServices/0.7.2/jquery.SPServices-0.7.2.min.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function () {
$().SPServices({
operation: "GetListItems",
async: false,
listName: "Sales Order Item",
CAMLViewFields: "<ViewFields><FieldRef Name='CUST_CODE' /><FieldRef Name='CUST_REF' /></ViewFields>",
completefunc: function (xData, Status) {
$(xData.responseXML).SPFilterNode("z:row").each(function () {
var liHtml = $(this).attr("ows_CUST_CODE") + "&nbsp;" + $(this).attr("ows_CUST_REF") + "<BR>";
$("#tasksUL").append(liHtml);
});
}
});
});
</script>
謝謝! |
|