<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 it = dy.getIterator();
while (!it.atEnd()) {
alert(it.get());
}
}
</script>
</head>
<body onLoad="testIt();">
</body>
</html>
|