Source

tw2.yui / tw2 / yui / templates / datasource.html

Full commit
1
2
3
4
5
6
7
8
9
<script type="text/javascript">
    tw2_yui_datasources = {}; // TBD: only if undefined
    var oDS = new YAHOO.util.XHRDataSource("/$w.compound_id", {
                responseType: YAHOO.util.XHRDataSource.TYPE_JSON,
                responseSchema: {resultsList:'results.items',
                                 fields: ['title'],}}
                                 );
    tw2_yui_datasources["$w.compound_id"] = oDS;
</script>