Das ist wirklich verwildert, ich versuche, dojo.image.Gallery zu verwenden, aber wenn ich die dojox.image.Gallery benötige, wird die dojo.addOnLoad() nicht ausgelöst, wenn ich jedoch die Zeile kommentieren, die Dojo erfordern. image.Gallery, ich kann 'onload' in der Konsole sehen, Code ist wie untendojo.image.Gallery funktioniert nicht mit addOnLoad?
alles, was ich verpasst habe?
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Testing the Image Gallery</title>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/dojo/1.7.2/dojo/dojo.js" djConfig="parseOnLoad: true"></script>
<script type="text/javascript">
dojo.require('dojox.image.Gallery');
dojo.require('dojox.data.FlickrRestStore');
dojo.require("dojo.parser"); // find widgets
dojo.addOnLoad(function(){
console.log('onload');
});
</script>
</head>
<body>
<h1 class="testTitle">dojox.image.Gallery</h1>
</body>
</html>