get.html revision 05a2c78cb67034fb5734ca5a004d698ea76d1f99
<html>
<head>
<title>YUI 3.0</title>
<script type="text/javascript">
(function() {
var Y = YUI();
// Y.Get.css(["/build/menu/assets/skins/sam/menu.css", "/build/logger/assets/skins/sam/logger.css"], {
timeout: 2000,
onSuccess: function() {
Y.log("css1 (menu, logger) complet", 'warn');
},
onTimeout: function() {
Y.log('onTimeout handler');
}
});
], {
timeout: 2000,
onSuccess: function() {
Y.log("css1 (menu, logger) complet", 'warn');
], {
timeout: 2000,
onSuccess: function() {
Y.log("nested complet", 'warn');
},
onTimeout: function() {
Y.log('onTimeout handler');
},
autopurge: true,
purgethreshold: 1
});
},
onTimeout: function() {
Y.log('onTimeout handler');
},
autopurge: true,
purgethreshold: 1
});
Y.Get.script("failure", {
onEnd: function(e) {
Y.log('onEnd: ' + e.statusText);
}
});
})();
</script>
<body>
<input id="addButton" type="button" value="Add link" />
</body>
</html>