webgui/www/extras/yui/tests/event-delegate/tests/delegation2.html
2009-09-21 13:13:24 -05:00

60 lines
1 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Event Delegation Test</title>
<script type="text/javascript" src="../../../build/yuiloader/yuiloader-min.js"></script>
<script type="text/javascript">
(function () {
// Instantiate and configure Loader:
var loader = new YAHOO.util.YUILoader({
require: ["event-delegate"],
base: '../../../build/',
loadOptional: true,
onSuccess: function() {
if (YAHOO.util.Event.delegate) {
alert("Loading of the delegate submodule was successful");
}
},
onProgress: function(o) {
alert("progress:" + o.name);
},
onFailure: function(msg, xhrobj) {
alert("Failed to load the delegate submodule was successful");
},
timeout: 10000
});
loader.insert();
}());
</script>
</head>
<body>
</body>
</html>