////////////////////////////////////////////////////////////////////////// encoded_out("\n\nTest 8:\n\n"); $l8 = new YAHOO_util_Loader(YUI_VERSION_TO_TEST); $l8->load("treeview"); $l8->load("treeviewcss"); $l8->setLoaded("treeview"); encoded_out("<!-- css -->\n"); encoded_out($l8->css()); encoded_out("<!-- js -->\n"); encoded_out($l8->script()); /* separate css and js output */ ////////////////////////////////////////////////////////////////////////// encoded_out("\n\nTest 9:\n\n"); $l9 = new YAHOO_util_Loader(YUI_VERSION_TO_TEST); $l9->load("calendar"); encoded_out($l9->json()); /* json */ ////////////////////////////////////////////////////////////////////////// encoded_out("\n\nTest 10:\n\n"); $l10 = new YAHOO_util_Loader(YUI_VERSION_TO_TEST); $l10->load("calendar"); encoded_out($l10->embed()); /////////////////////////////////////////// encoded_out("\n\nTest 11:\n\n"); //$yui_config->configDebug(array( //"menu" => true //)); $l11 = new YAHOO_util_Loader(YUI_VERSION_TO_TEST); $l11->base = "../../build/"; $l11->filter = YUI_DEBUG; $l11->load("menu");
$loader->target = $target; // tell the loader about each module requested foreach ($modules as $module) { $loader->load($module); } // get the output if ($moduletype == "css") { $output = $loader->css(); } else { if ($moduletype == "script") { $output = $loader->script(); } else { //$output = $loader -> tags(); //$output .= "<br>\n"; //$output .= $loader -> getLoadedModulesAsJSON(); $output = $loader->json(); } } } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <title>Yahoo UI Library Loader</title> <style type="text/css"> ul { list-style: none;