开发者

JavaScript permission denied. Not cross domain?

I'm working on a web app that开发者_JS百科 very rarely returns a JavaScript permission denied error when attempting to access document elements. I'm well aware of cross-domain issues and I am actively pursuing them as a possible cause. My question is: are there other possible causes for a permission denied exception? Just want to make sure I'm looking in to all possible avenues.

Thanks!


Usually it just occurs for cross domain calls, but IE does it for other things too. For instance, some properties and objects in the IE dom are inaccessible like document.styleSheets.rules.

http://www.dannyg.com/ref/jsminifaq.html#q15

It has also been said that assigning too long of strings to an URL will throw it:

http://javascriptfixer.com/access-is-denied.php

You can also get the error when submitting a form with an input=file if the input's value wasn't properly selected.

http://support.microsoft.com/default.aspx?scid=kb;en-us;892442

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜