开发者

Dojo fails to load from google's CDN using Chrome; produces Uncaught illegal access

开发者 https://www.devze.com 2022-12-18 07:13 出处:网络
When I load dojo 1.4 from google\'s CDN, I get the following error: native string.js:183 Uncaught illegal access

When I load dojo 1.4 from google's CDN, I get the following error:

native string.js:183 Uncaught illegal access

This onl开发者_如何学JAVAy happens on about half the refreshes when using Chrome, other times it works fine. I've verified that the problem reproduces on multiple windows machines running Chrome.

I'm using the following code to create my dojo dijits:

<link rel="stylesheet" type="text/css" href="http://ajax.googleapis.com/ajax/libs/dojo/1.4/dijit/themes/tundra/tundra.css">

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/dojo/1.4/dojo/dojo.xd.js" djConfig="parseOnLoad: true"> 
</script> 

<script type="text/javascript"> 
    dojo.require("dijit.layout.TabContainer");
    dojo.require("dijit.layout.ContentPane");
    dojo.require("dijit.Dialog");
    dojo.require("dijit.form.DateTextBox");
</script> 

Any ideas?


I don't have a good solution for you, but this appears to be a bug in Chrome 4.0.249.89 on Windows (XP is what I've confirmed) and not related to their CDN hosted version of Dojo 1.4 (I run it locally).

Whatever the previous point release of Chome v4 was did not have this issue. I reported it as a bug via the Chrome bug report tool.

Also, FWIW, Chrome "5.0.322.2 dev" under Linux (Ubuntu 9.1) does not have this issue.

0

精彩评论

暂无评论...
验证码 换一张
取 消