1
以下代码给出了DOJO未定义错误,而我在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';
** IE VERSION 8 ** – pratik 2013-05-02 11:31:33
它也适用于IE8。 – 2013-05-02 11:34:31
**我不,但它不能在IE8 ** – pratik 2013-05-02 11:36:55