Foren

Home » Liferay Portal » English » 3. Development

Kombinierte Ansicht Flache Ansicht Baumansicht
Threads [ Zurück | Nächste ]
outside admin
AUI help needed with DataTable external source
10. April 2011 12:52
Antwort

outside admin

Rang: Junior Member

Nachrichten: 57

Eintrittsdatum: 24. März 2010

Neue Beiträge

Hi i try to use the examplecode of YUI http://yuiblog.com/blog/2008/10/15/datatable-260-part-one/.
I want to fill a DataTable with external JSON data, but AUI doesn't seem to know the XHRDataSource. Does anyone have a working example?


1
2var myDataSource = new YAHOO.util.XHRDataSource("http://url/datafeed.php?", {
3    responseType: YAHOO.util.DataSource.TYPE_JSON,
4    responseSchema: {
5        resultsList: "SalesDatabase.items",
6        fields: ["Company","Title","Name","Phone","Email"]
7    }
8});
Hitoshi Ozawa
RE: AUI help needed with DataTable external source
24. April 2011 03:49
Antwort

Hitoshi Ozawa

Rang: Liferay Legend

Nachrichten: 7952

Eintrittsdatum: 23. März 2010

Neue Beiträge

http://tech.dir.groups.yahoo.com/group/ydn-javascript/message/49981