当我在Internet Explorer中运行它时,以下代码给出了DOJO 未定义错误。
<script language="text/javascript" src="dojoroot/dojo/dojo.js"
djConfig="parseOnLoad: true,isDebug:false" ></script>
<script type="text/javascript">
function readFile() {
dojo.xhrGet({
url: "http://www.jnerlich.de/servlets/ReturnParameters",
handleAs: "text",
timeout: 5000,
load: function(response, ioArgs) {
dojo.byId("replace").innerHTML = response;
return response;
},
error: function(response, ioArgs) {
console.error("HTTP status code: ", ioArgs.xhr.status);
dojo.byId("replace").innerHTML = 'Loading the ressource from the server did not work';
return response;
},
content: {name: "lars", url:"testing" }
});
}
</script>
我此时遇到的错误
dojo.byId("replace").innerHTML = 'Loading the ressource from the server did not work';