<html>
<head>
<script type="text/javascript">
var djConfig = {
baseScriptUri : "js/dojo/",
parseOnLoad : true
};
</script>
<script type="text/javascript" src="js/dojo/dojo/dojo.js"></script>
<script>
dojo.require("dojox.collections.Dictionary");
function testIt() {
var dy = new dojox.collections.Dictionary();
dy.add("A", "a");
dy.add("B", "b");
dy.add("Q", "q");
dy.add("R", "r");
var keys = dy.getKeyList();
for (var i = 0; i < keys.length; i++) {
alert(keys[i]);
}
}
</script>
</head>
<body onLoad="testIt();">
</body>
</html>
|