Bonjour à tous

Je débute dojox , j'ai utilisé le tutorial de dojo campus pour effectuer un test sur layout.coentpane Tuto . Mais j'ai une erreur "undefined" du nom de panel dijit.byid('cp1') is undefined.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
 
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Domain Default page</title>
<script src="scripts/dojox/dojo/dojo.js" type="text/javascript"></script>
<script src="scripts/dojox/dijit/dijit.js" type="text/javascript"></script>
<script type="text/javascript">
  dojo.require("dijit.layout.ContentPane");
  dojo.require("dojo.parser");  // scan page for widgets and instantiate them
</script>
</head>
<body  class="tundra">
 
<div dojoType="dijit.layout.ContentPane" class="box" hasShadow="true" id="cp1"
  href="featureexplorer/Dijit/Layout/fileToLoad.txt">
  This content should be replaced by remotely loaded content
</div>
 
<input type="button" value="Change pane in 3 seconds" 
  onClick='changeHref();'>
 
<script type="text/javascript">
   function changeHref()
  {
     setTimeout('dijit.byId("cp1").setHref("featureexplorer/Dijit/LayoutfileToLoad2.txt")', 3000);
  }
</script>
</body>
</html>
J'ai même ajouter dojo.addOnLoad(function() mais cela ne change pas. Je ne comprends pas

Merci