postを使用していますが、YUIドキュメントのサンプルコードが機能していません。
YAHOO.util.Event.addListener(window,"load",function()
{
var columnDefs =
[
{key:"url", sortable:true, resizeable:true},
{key:"title", sortable:true, resizeable:true},
{key:"count", sortable:true, resizeable:true}
];
this.dataSource = new YAHOO.util.DataSource("/getallsites/");
this.dataSource.responseType = YAHOO.util.XHRDataSource.TYPE_JSON;
this.dataSource.connMethodPost = true;
this.dataSource.responseSchema =
{
fields:["url","title","count"]
};
this.myDataTable = new YAHOO.widget.DataTable("siteTable",columnDefs,this.dataSource,
{initialRequest:"/getallsites/"});
});
/getallsites/はJSARRAYを返します。JSARRAYをJSONに変換する前に、JSARRAYを機能させたいと思っていました。Djangoサーバーログは/getallsites/へのリクエストを認識していません。何か案は?
ありがとう!