var dataSource = {}; var listView = {}; function loadInterface() { var loader = new YAHOO.util.YUILoader({ require: ["container", "datatable", "json", "connection", "tabview", "element", "event", "yahoo", "dom", "logger", "animation"], loadOptional: true, onSuccess: modulesLoaded, base: "http://localhost/.templates/yui/build/"//, //filter: "DEBUG" }); loader.insert(); } function modulesLoaded() { YAHOO.widget.Logger.enableBrowserConsole(); dataSource = new FIRSTCLASS.util.DataSource({ schemaUrl: "http://localhost/.templates/fcTest/resources/containerHeader.js", containerBaseUrl: "http://localhost/.templates/fcTest/resources/container.js" }); listView = new FIRSTCLASS.layout.ListView(document.getElementById("listcontainer"), dataSource); }