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